Hi,
I want to create an NVR ram segment at a fixed location, which does NOT get initialised at startup, i.e. is not part of BSS.
I have done the following:
// define a non-volatile section, based at 0xF1000000
#pragma section ".NONVOLATILE" ".abs.F1000000" data_mode=far_abs
// define prefix for non-volatile variables
#define NON_VOLATILE __declspec (section ".NONVOLATILE")
// declare non volatile variable
NON_VOLATILE ULONG Account1;
This partly achieves what I need - Account1 is located at 0xF1000000, but is part of bss so gets initialised to 0 at startup.
Can someone advise me how to declare non-initialised memory?
Many thanks
Martin Wakely
Solved! Go to Solution.
Hello
Can you please search www.freescale.com for FAQ-27500?
This FAQ discussed that topic.
It was created for an earlier release of CodeWarrior, but should still be working with the latest release of the tool chain.
CrasyCat
Hello
Can you please search www.freescale.com for FAQ-27500?
This FAQ discussed that topic.
It was created for an earlier release of CodeWarrior, but should still be working with the latest release of the tool chain.
CrasyCat
Hi,
I've just read that FAQ, thanks.
Strangely that's exactly the solution I had worked out!