Hello
I setup 32K standby ram in linker_flash.ld
The set variable are also in relevant memory section
and power on will init...
but standby mode exit , these data not save!?
I don't know why?
there is something wrong with my initialzetion?
or what steps are missing when entering standby mode?
Please help
Thank you,
Hi @SHCHOU,
Modify the linker file to separate the 32KB standby RAM (0x2040 0000 ~ 0x2040 8000) from int_sram memory region, and place standby .bss and .data or .text sections into the new region as well as adjust the link address symbols for customized initialization during startup as such:
Also, as a note: CM7 CPU D-Cache MUST be disabled to use the Standby RAM area. Or set the standby RAM (0x2040 0000 ~0x2040 8000) as non-cacheable in MPU configuration.
Keep in mind that the SRAM contents is invalid after Destructive reset.
Best regards,
Julián
Thanks for your reply,
I have setup 32K standby RAM (0x2040 0000 ~ 0x2040 8000) , can you help me confirm that the setting are correct?
and i have also setup standby ram as non-cacheable in MPU configuration.
this setting is ok?
Hi @SHCHOU,
Yes, it should be correct. Keep in mind that the linker file and startup code does not include initialized data to this section. The linker file explicitly mentions that:
Best regards,
Julián