Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 371
shreyas_patel21 Avatar asked Dec 02 '22 20:12

shreyas_patel21


1 Answers

If you're using WinAVR for compilation you may do this using included avr-objcopy:

C:\WinAVR-20100110\bin> avr-objcopy.exe -I ihex -O binary input_file.hex output.bin

If you're developing on Linux, there's a package, avr-binutils, with the avr-objcopy program.

like image 130
Kissiel Avatar answered Dec 28 '22 11:12

Kissiel