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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With