MicroC Code Generator : Code Options : Dynamic Data Initialization

Dynamic Data Initialization

This feature enables the initialization of all the data in the model through calls to the RESET_DATA macro in the TASKINIT function.The initialization is enabled by the Memory Initializing check box in the Target Properties tab.The RESET_DATA macro uses the function memset, which should be defined in the environment. In the case where the function memset is not defined, you can define the macro AVOID_MEMSET and use the function rimc_mem_set (defined in the <profile>.c file).