Creating .bin file for boot loading

Talk about our 40 Pin Dip ARM Cortex M3 / M0 Here

Creating .bin file for boot loading

Postby Carl-SolderSplash » 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
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Creating .bin file for boot loading

Postby Carl-SolderSplash » Wed Oct 30, 2013 11:23 am

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"; 
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Creating .bin file for boot loading

Postby donster2k » Mon Jul 14, 2014 9:54 pm

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
donster2k
 
Posts: 7
Joined: Tue Mar 18, 2014 9:25 pm

Re: Creating .bin file for boot loading

Postby Carl-SolderSplash » Tue Jul 15, 2014 9:45 am

Glad it was useful! :)
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm


Return to DipCortex M3/M0

Who is online

Users browsing this forum: No registered users and 2 guests

cron