retained memory between bootloader and app in sleep mode

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
garzola
Offline
Last seen:3 months 3 weeks ago
Joined:2018-07-23 13:21
retained memory between bootloader and app in sleep mode

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:
PM_Dialog
Offline
Last seen:9 hours 28 min ago
Staff
Joined:2018-02-08 11:03
嗨garzola,

嗨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

garzola
Offline
Last seen:3 months 3 weeks ago
Joined:2018-07-23 13:21
thanks, dg_configMEM

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

PM_Dialog
Offline
Last seen:9 hours 28 min ago
Staff
Joined:2018-02-08 11:03
嗨garzola,

嗨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