Joe Kissell

How to automatically swap Project.lcf files?

Discussion created by Joe Kissell on Aug 23, 2011
Latest reply on Feb 22, 2012 by CrasyCat

I have two different Project.lcf files: One is for building witout a bootloader (for development) and the other is for building with a bootloader (for production). 


Can I setup something that will swap out these two files (or just the code in the file) based on a flag like this?



I've tried using a something like the following, but the LCF file seems to have it's own syntax and doesn't recognize these commands.

#if( DEVELOPMENT_BUILD == TRUE )....#else....#endif /* #if( DEVELOPMENT_BUILD == TRUE ) */


Note: I'm using CW 10.1 with a mcf51cn128 MCU.