Code Warrior - Code in RAM / PIC

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

Code Warrior - Code in RAM / PIC

1,305 Views
yoavbaryoseph
Contributor I

Hi,

I am looking into the Code Warrior and trying to understand how can I execute my code from RAM (P1010 platform).

I found some documentation sepcifying how to edit the .lcf file, however it seems that I have to declare for each function that it has to be assigned to the section allocated to the RAM (via the .lcf file).

How can I do it for the entire code, without specifying it for each function

Or - should I use Position Independent Code (PIC) - how to exactly specify it in the IDE? This way I will perform copy of the entire SW to the RAM (using some boot application SW that will copy the secondary application to the RAM and execute it).

Thanks,
Yoav

Labels (1)
0 Kudos
1 Reply

1,261 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yoav Bar Yospeh,

Please refer to CodeWarrior sample bareboard project. CodeWarrior connects to the target board through JTAG, initializes the target board with CodeWarrior initialization file, then CodeWarrior downloads the executable file to ARM and execute it in ARM.

Please refer section B in the attached document to create and debug a bareboard project.

Thanks,

Yiping

0 Kudos