Linker File Placement Question:

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

Linker File Placement Question:

1,820 Views
bchriste
Contributor I
I am using CodeWarrior V7.0 and a Motorola 56F8366 part. I want to place some code in the boot section and some code in the program sections of flash. I have figured out how to change the base address in the “Build Options” of Bean Inspector. I can get all the code to either build and run in either section but I cannot figure out how to get certain modules ( C files) placed into the different sections and have the linker place them there. I can add a new MemoryArea in the “Build Opitons” but it does not allow me to assign functions or files to reside in that memory area. Can anyone help me? Thanks in advance for your help.
Labels (1)
Tags (1)
0 Kudos
1 Reply

199 Views
J2MEJediMaster
Specialist I
Have you checked the example programs in the Codewarrior directory yet?

Also, you might use the SEGMENT pragma to assign your functions to the MemoryArea. To wit:

#pragma SEGMENT MemoryArea



Sorry, I'm pulling this off the top of my head for the HC processors, but the syntax should be similar.

---Tom
0 Kudos