Joe Haas

Calling all LCF Experts...

Discussion created by Joe Haas on Jul 18, 2006
Latest reply on Jul 24, 2006 by CrasyCat
I am using CW 6.2 for coldfire and am compiling for the MCF5407.
 
I am trying to link in a custom library (CF_boot_ROM.elf) and I want it to link starting at a specific address while the rest of my application is to link to another address.  I've tried the following to no avail:

MEMORY {
 TEXT_BOOT (RX) : ORIGIN = 0x7E000000, LENGTH = 0x0
 TEXT (RX) : ORIGIN = 0x7E400000, LENGTH = 0x0
 DATA (RW) : ORIGIN = 0x00040000, LENGTH = 0x0
}
SECTIONS {
 .boot_app :
 {
  CF_boot_ROM.elf(.text)
  .= ALIGN(0x8);
  CF_boot_ROM.elf(.rodata)
  .= ALIGN(0x8);
 } > TEXT_BOOT
 .main_application :
 {
  vectors.s(.text)
     .= ALIGN(0x8);
     mcf5407_lo.s(.text)
     .= ALIGN(0x8);
  *(.text)
  .= ALIGN(0x8);
  *(.rodata)
  .= ALIGN(0x8);
  __end_of_text = .;
 } > TEXT
 
All I get is the main application in my .S19 file.
 
Thanks,
Joe

Outcomes