Locating NVR in Codewarrier Mobile GT 9.2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Locating NVR in Codewarrier Mobile GT 9.2

ソリューションへジャンプ
2,402件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,512件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,513件の閲覧回数
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 件の賞賛
返信
1,512件の閲覧回数
martinw
Contributor III

Hi,

 

I've just read that FAQ, thanks.

 

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

0 件の賞賛
返信