MPC5675K-Fail to place code and data in internal RAM

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

MPC5675K-Fail to place code and data in internal RAM

628件の閲覧回数
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.

ラベル(1)
0 件の賞賛
1 返信

506件の閲覧回数
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 件の賞賛