BIN2HEX using matlab

02 Jun 2012

MBed, I am looking at using Matlab to write a simple utility (without calling BIN2HEX from a dos prompt). Since matlab has some built-in utilities to read and write binary formats I thought this could be useful. To do this however I need to know the format of the binary file. Can anybody spec the details on this?

02 Jun 2012

You really only need to worry about the HEX file format. The binary file is just that, a basic binary which doesn't need to be parsed at all. The first byte of the binary file is placed in the first byte of FLASH, and so on.

For the HEX file format, look at this wikipedia page: http://en.wikipedia.org/wiki/Intel_HEX

-Adam