avrbootloaderhex-file

How do I convert an Intel HEX file to raw data like memory view?


I want to make boot loader code for AVR, which can update firmware over the air.

Now I am able to write to the application area using some fixed data. I have a hex file of the new firmware to be updated. How do I convert that hex file to raw data so that I can update the application using that raw data?


Solution

  • You may use some tool (http://hex2bin.sourceforge.net/ or another hex2bin converter) or write your own hex parser that may have some caveats when coming to files > 64 KB.