CodeWarrior write to RAM with tcl script.

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

CodeWarrior write to RAM with tcl script.

808 Views
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.

Labels (1)
0 Kudos
2 Replies

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

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