Page 1 of 1

Creating .bin file for boot loading

PostPosted: Fri Apr 19, 2013 10:33 am
by Carl-SolderSplash
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

Re: Creating .bin file for boot loading

PostPosted: Wed Oct 30, 2013 11:23 am
by Carl-SolderSplash
Newest versions of LPCxpresso have the correct string in build steps, but have the bin file creation commented out. Simply remove the '#' and you will build a .bin as well as an .axf. It should look like this ...

Code: Select all
arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"; 

Re: Creating .bin file for boot loading

PostPosted: Mon Jul 14, 2014 9:54 pm
by donster2k
Carl-SolderSplash wrote:Newest versions of LPCxpresso have the correct string in build steps, but have the bin file creation commented out. Simply remove the '#' and you will build a .bin as well as an .axf. It should look like this ...

Code: Select all
arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"; 


Thank you for sharing that! I was wondering why there was no bin file created in the LPCOpen examples.
Donal

Re: Creating .bin file for boot loading

PostPosted: Tue Jul 15, 2014 9:45 am
by Carl-SolderSplash
Glad it was useful! :)