This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating Variables in non volatile areas.

Hi, I'm developing an application on the LPC2368 that stores configuration data in the battery backed area of the processor. I have managed to locate the data structure at the correct address in memory, but even though i have specified the area as "NoInit" in the "options for target" dialog, the area always gets zeroed on reset.
I have also set the

stdMyStruct stData __attribute__((section("IRAM2")));

line in the code to correctly locate the variable in the correct area. I have looked at the scatter file and it seems ok.

As far as i can tell the i have setup the system correctly, but the structure is always zero'd out.

#pragma NOINIT, did n't work either!!
Any help would be gratefully received
Dean