retention ram and ble connections

2 posts / 0 new
Last post
mohit3112
Offline
Last seen:8 months 5 days ago
Expert
加入:2014-08-04 13:45
retention ram and ble connections

i have some doubt about memory mapping of da14580
if my no of connections is 1 can i use retention_mem_area1
can i initialize variable like this:
uint8_t bpm __attribute__((section("retention_mem_area1"), zero_init));

also does "retention_mem_area1" and "retention_mem_area0" used by rtos also ?

Thanks
Mohit Maheshwari

Device:
MT_dialog
Offline
Last seen:4 weeks 1 day ago
工作人员
加入:2015-06-08 34
Hi mohit3112,

Hi mohit3112,

The retention_mem_area are tags that are used to denote the places that you want to place your variables. by using the declaration you mention you can place variable to the corresponding memory area that is defined by the scatterfile. The 580 doesn't use RTOS, you can check the memory mapping by looking at the scatterfile.

Thanks MT_dialog