URGENT : Maping a variable in a section using CodeWarior

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

URGENT : Maping a variable in a section using CodeWarior

943 次查看
mahermalak
Contributor III

Hi,

 

I am trying to map a variable to given section that is defined in the linker file (attached : XPC560XB_flash.lcf).

 

In my code, I have two variables, one declared normally and the second should be written in a given section (called RamNoInit, where after SW reset and during startup, the values of this section should keep their variables)

 

the declaration of the variables is :

163711_163711.pngpastedImage_1.png

 

The declaration of the section in the linker file :

   in Memory

163748_163748.pngpastedImage_3.png

   in Sections:

163734_163734.pngpastedImage_4.png

 

In the generated Map file, we have the variable "ubRamNoInit" is not mapped in the correct section:

163735_163735.pngpastedImage_12.png

and the "noinit" section is empty:

163736_163736.pngpastedImage_13.png

 

Do you have an idea why i  have this problem ?

Do I declare correctly the variables ?

Do I need change something in the compilers options (attached : PA_XPC560XB_mwewrks_cfg.mak) ?

 

Thank you

Maher

Original Attachment has been moved to: XPC560XB_flash.lcf.zip

Original Attachment has been moved to: PA_XPC560XB_mwerks_cfg.mak.zip

标签 (1)
0 项奖励
回复
1 回复

811 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

this issue was already resolved in the following thread: https://community.nxp.com/thread/434043 

Regards,

Martin

0 项奖励
回复