lpcware

How do I create a non initialized variable

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by kcarolan on Thu Apr 24 18:56:34 MST 2014
I am using the Lpc11e14 and I need to create a few variable the will not get initialized when I come out of reset.  I am putting the Lpc11e14 to sleep and using the WDT to bring the Lpx11exx out of sleep.  I would like to keep the variables intact when I come out of sleep. I did a search on un-initialized variable in lpcxpresso and found the following but I could not get it to compile.

volatile int32 __attribute__ ((section(“.noinit”))) variable;

Thanks, Kevin

Outcomes