Hi ZhangJennie !
This USB_SRAM and SRAM4 area is out of any memory map and not known for code at all.
MEMORY
{
/* Define each memory region */
PROGRAM_FLASH (rx) : ORIGIN = 0x10000000, LENGTH = 0x28000 /* 160K bytes (alias Flash) */
SG_veneer_table (rx) : ORIGIN = 0x1002f000, LENGTH = 0x1000 /* 4K bytes (alias Flash2) */
Ram0 (rwx) : ORIGIN = 0x30000000, LENGTH = 0x10000 /* 64K bytes (alias RAM) */
}
But SRAM4 area is retains over reboot and USB_SRAM not.
It can be so that BootROM try to sense USB interface and clean this area.
But we should know about this ROM behavior over reboot
and does it possible to disable this. We need more SRAM what is not touched by ROM.
Regards,
Eugene