保留记忆

variable in retention_mem_area0

Fri, 2017-09-08 06:47--stanley_yeh

Hi there,
I declare many variables such as following example...
static uint8_t test __attribute__((section("retention_mem_area0"), zero_init));

And my questions are...
1. After printing the address of the variable, It's 0x7FD4804(in SysRAM4:). Why?
2. Why doesn't the variable be stored in SysRAM1?
3.它是否意味着ns the variable will be cleared in extend sleep mode? But the value of the variable is still correct, why?

Subscribe to RSS - retention memory