How to make the data in the specified RAM partition not lost after the software reset?
Normally after reset are uninitialized variables set to 0 by startup code. You can put your variables into .noinit section. In this case variables will be skipped out from setting to 0:
__attribute__ ((section(".noinit"))) uint16_t my_global_array;
Oh!Thank you so much,my friend!
more question to me, my aim is to define a bootloader_start_var __, I jut use __attribute__ ((section(".noinit"))) to define my var didn't work, I found there is't .noinit section in the 57xx_flash.ld.
Do i need to define the .noinit section in the .ld files? should I do something in the file startup.s?
I am a totally newbies, thanks for your time!
Retrieving data ...