Creating .bin file for boot loading
Posted: Fri Apr 19, 2013 10:33 am
By default Code Red's LPCXpresso IDE doesnt create a .bin file you can use for bootloading, but theres an easy way to get it to.
- Right click on the project
- Expand the "C/C++ Build" Tree
- Select "Settings" under "C/C++ Build"
- Select the "Build Steps" tab
- Update the Post Build steps command with this :
- Code: Select all
arm-none-eabi-size ${BuildArtifactFileName}; arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin; checksum ${BuildArtifactFileBaseName}.bin;
- After building you should find a .bin file in your debug directory
- With the DipCortex in bootloader mode you can drag and drop this bin file on to the removable drive and re-flash it's software