URGENT : Maping a variable in a section using CodeWarior

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

URGENT : Maping a variable in a section using CodeWarior

410 Views
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

Labels (1)
0 Kudos
1 Reply

278 Views
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 Kudos