CodeWarrior write to RAM with tcl script.

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

CodeWarrior write to RAM with tcl script.

864 次查看
dmitrshard
Contributor II

Hello!

 

I use CodeWarrior PA 10.5.1. I develop bareboard application for MPC8572DS board. My application have two parts, one part *.elf format, which i run by Code Warrior TAP over USB, second part i need to place in memory on specific address.

Maybe i need to use .tcl script, which will place my *.img in RAM within initialization?

How i can place my second *.elf part on specific memory in CodeWarrior?

 

Thanks.

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

621 次查看
marius_grigoras
NXP Employee
NXP Employee

Hi,

Try to use "restore" command (for more details type help restore in debugger shell). Basically, this will copy your application to the memory. If this is not working with elf files, you can generate also binary files directly from project properties:

pastedImage_0.png

Regards,

Marius

0 项奖励

621 次查看
lunminliang
NXP Employee
NXP Employee

Hello Dmitr Shard,

You can try this in .lcf file.

If you create the bareboard project following the wizard in CodeWarrior, you can find there is a .lcf in the folder named 8572DS_RAM_core0.lcf.  The file is a way of specifying segment addresses. You could relocate code and data in internal RAM.

See details in Power Arch Build Tools Reference.pdf. The doc is located in the CW installation path:

D:\Freescale\CW_PA_v10.5.1\PA\Help\PDF

See Section 14.8 Relocating Code and Data in Internal RAM.

Regards

Lunmin

0 项奖励