Locating NVR in Codewarrier Mobile GT 9.2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Locating NVR in Codewarrier Mobile GT 9.2

跳至解决方案
2,398 次查看
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,508 次查看
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,509 次查看
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,508 次查看
martinw
Contributor III

Hi,

 

I've just read that FAQ, thanks.

 

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

0 项奖励
回复