Page 1 of 1

Add support for objcopy

Posted: Wed Oct 23, 2013 9:31 am
by Gibbon1
Suggestion that might make sense for embedded, which is to add an entry for object copy in the Project-Settings ->Common Settings

I'm using Codelite for embedded firmware on AVR and ARM processors. Typically after an the code it comiple and liked to a .elf file, you run objcopy to create an binary file (.hex or .srec). I've been doing this via the post build settings, for example.

arm-none-eabi-objcopy -O srec $(ProjectPath)\Debug\main.elf main.srec

This works, but it it runs even if there is nothing to do.

Re: Add support for objcopy

Posted: Wed Oct 23, 2013 3:31 pm
by Jarod42
There is a possible 'solution' using "Custom Makefile rule" if you know the dependencies...

Note:
You can add more rules by separating them by line (but I see it as a hack)...