I would like to use "run user program before" or some such to set a #define from one place in several builds i.e. build #1 will pick the #define from 'x' build #2 will also pick the #define from 'x' an example: ONE place to define whether want "debug' or "production" mode which will affect both the build of boot and app.
I do not know if I make myself crystal clear, but if not, do ask.
currently this is accomplished with sepaarte defines and too many mistakes happen.
BTW it would be absolutotally wondeful if the above also could affect a .bat file run in "run user program after"
Erik
"You fly what you debug." there is a post link checksum generator. Thus when you JTAG the file with the debug info you do not get the checksum and the bootloader burps.
there is a post link checksum generator. Thus when you JTAG the file with the debug info you do not get the checksum and the bootloader burps.
So don't do that. uVision can handle separation between the hex file being loaded and symbols taken from the ELF file.
... do that. Again I am new to tne IDE (and sorry I am forced to use it). It seems Keil shares with the Gatesians the belief that they know better than you what you want. Also when using a decent editor instead of the 'simple' one in the IDE, the IDE 'advantage' soon disappears.
Anyhow, Thay want it, they get it, how to do the above .hex/.elf combo? flash/download do not ask.
how to do the above .hex/.elf combo? flash/download do not ask.
Been a while since I had to, but the essence was you had to change the debugger startup configuration from the automagic default. Turn off automatic flashing of the .elf file, then set up a debugger "init script" to do exactly those things you want done --- including flashing the .hex file, and loading the elf file, symbols-only.