While the code for most of my projects still starts out being tested on my mbed module, I fairly quickly move to a dedicated PCB with a LPC1768 on board. Then I have to follow the path spelled out in Chris Styles 'Prototype to hardware', and convert the BIN file to a HEX file that can be loaded using Flash Magic, using Bin2hex.exe.
To take some of the tedium out of repeatedly going through this process I use a batch file like this:
cd C:\mbed work\CSM_CM
rename CSM_CM*.bin CSM_CM.bin
bin2hex /4 CSM_CM.bin CSM_CM.hex
The second line shortens the default BIN file name to fit the required 8.3 format, and the '/4' in the third line allows BIN files larger than 64K to be converted to ARM format rather than Intel 'Extended Address' format.
Maybe someone may find these two tips useful, but my main reason for posting to to ask "Why is there not provision for getting either HEX or BIN file output from the mbed compiler?" Most other ARM compilers give you this option.
I have a MBed which is about a year old. I just got back to the system. The OP system is Windows 7. Just got the computer on line. After a compile a .bin file is available. When is downloads the blue light blinks but when I reset nothing happens. If I go to the MBed drive and sometimes there is a Hex file available. If I download the hex file the program will execute. What am I doing wrong at build time?