Hi All
In the CMD, customer created a NVRAM_DATA block, which is mapped to a external NVRAM to store data.
MEMORY
{
FLASH (RX) : origin = APP_BASE, length = 0x00100000
SRAM (RWX) : origin = 0x20000000, length = 0x00040000
NVRAM_DATA (RWX) : origin = 0xA0000000, length = 0x00020000
}
SECTIONS
{
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.bss : > SRAM
.nv_dat : > NVRAM_DATA
}
In the main, customer map some special variables to .nv_dat, these variable will save data before power off.
#pragma DATA_SECTION(ui32Loop1, ".nv_dat");
uint32_t ui32Loop1;
As in Tiva C device, it will auto initialize variable, but customer don't want to initialize the .nv_dat.
Do someone know how to deal the variable initialization in this condition? That is initialized the default global variables in .bss, but not initialized custom variables.
Eric