Locating NVR in Codewarrier Mobile GT 9.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Locating NVR in Codewarrier Mobile GT 9.2

Jump to solution
1,443 Views
martinw
Contributor III

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

Labels (1)
0 Kudos
Reply
1 Solution
553 Views
CrasyCat
Specialist III

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

View solution in original post

0 Kudos
Reply
2 Replies
554 Views
CrasyCat
Specialist III

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

0 Kudos
Reply
553 Views
martinw
Contributor III

Hi,

 

I've just read that FAQ, thanks.

 

Strangely that's exactly the solution I had worked out!

0 Kudos
Reply