Hi,
I would like to share memory not initialized variable between bootloader and the app , is this possibile ?
我试着与__RETAINED_UNINIT看看ms to wok only when sleep mode is not used.
basically what I 'm looking for is a not initialized memory kept on a restart.
Thanks in advance
Device:
嗨garzola,
Regarding your first issue, I am not able to completely understand what you mean and what you would like to accomplish, so I need some clarifications on this. What do you mean with “share memory”? Since you are using the __RETAINED_UNINIT attribute, your data should me stored into the retention RAM and should not be initialized after the reset ore when working with any of sleep mode. Can you please check if you store your data in a RET RAM block that is powered off? Which RET RAM cells are power on? Please check the dg_configMEM_RETENTION_MODE and the description into bsp_defaults.h header file. If you would like to have all the five ram cells power on, the definition should have the value 0x1F. After that, please open the .map file, and try to find the variable which you want to be initialized. In which address is stored int the ram?
Thanks, PM_Dialog
thanks, dg_configMEM_RETENTION_MODE seems it works but my goal is to share a variable in RAM between bootloader and app.
I guess i need to mod the linker in order to have a fixed address where both (bootloader and app) can read it..
Marco
嗨garzola,
Glad that you are able to share a variable in RAM between bootloader and application. If you have any other questions, please create a new forum thread. Also, if you found the answer useful, please mark it as accepted.
Thanks, PM_Dialog