MPC5675K-Fail to place code and data in internal RAM

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5675K-Fail to place code and data in internal RAM

316 Views
yachuanliu
Contributor II

Hi,everyone,

I want to place  some code and data into a specific Internal RAM area, but when I follow the steps told in the application note CodeWarrior Linker Command File (LCF) for Qorivva/PX(AN4497), I failed. Here is my program.

(1)Create New RAM Segment in .lcf

155306_155306.pngmemory.png

(2)Create New RAM Section in .lcf

155307_155307.pngQQ图片20160707211916.png

(3)Relocating Code and Data in Internal RAM

155309_155309.pngQQ图片20160707212140.png

Then when I compile this project in CodeWarrior 2.10, an error showed below occurs.

155312_155312.pngQQ图片20160707212602.png

Who can help me solve this error. Thank you very much.

Labels (1)
0 Kudos
1 Reply

194 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

It'll be apparetnly because variable 'xxxx' would normally go into .bss section. I have found in Power Architecture Build Tools Reference example below that shows how to defined two sections, one for initialized parts, second for uninitialized parts:

// you do not have to use the names in this example

// .red is the initialized part of the section

// .blue is the uninitialized part of the section

#pragma section RW “.red” “.blue” data_mode = sda_rel

Or you could just use initialized variable.

0 Kudos