FridgeFreezer

CW10 Including external files in .lcf, can't find file

Discussion created by FridgeFreezer on Feb 16, 2012
Latest reply on Jul 2, 2013 by TugboatCaptain

I've just (against my will) converted to CW10 from CW7.2, I've imported my old project which went as smoothly as falling off a sharp rocky cliff into a pit of spikes, and now have a glitch I can't fix.

 

In my old project I INCLUDEd a binary file (bootloader.bin) in the linker command file thus:

  .bootcode: {   ___Boot_START   = .;  INCLUDE bootloader_r04.bin  . = ALIGN (0x4);  ___Boot_END     =.;  } > bootcode  // Store in bootcode

 But when I try to build my project I get the following error:

Linker command file error at line 42 File not found: bootloader.bin

Which I can't seem to fix.

 

The bootloader is in {project}/Bootloader/ but if I put that in the .LCF (INCLUDE "Bootloader/bootloader.bin") it still isn't happy and reports:

Linker command file error at line 42 Expecting: identifier

 

The path "{Project}/Bootloader" is in the project settings, as is "{Project}\Bootloader" what with the buggy project settings window never actually deleting paths.

 

Any ideas appreciated! .

Outcomes