Flashing Binary file in Atmega MCU

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello ,

 

I am using the Atmega256 MCU. This is attached to a Bluetooth device and through this Bluetooth device it receives new firmware in binary format. Can we use the received bin file and flash it like we do it using the .hex file or .elf file? The Bluetooth supports only hex values . The .hex file we obtain are the Intel hex files,which contains the parser ,which cannot be transferred over the bluetooth. Any suggestions? (ofcourse I will have to work on the Bootloader,). The sample figure below shows the format.

 

 

Thanks.

Pika

Last Edited: Tue. Dec 4, 2018 - 11:33 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

pika wrote:
The .hex file we obtain are the Intel hex files,which contains the parser ,which cannot be transferred over the bluetooth.

 

What do you mean, "the parser"?

 

You can try to convert the hex file to bin with avr-objcopy, like this:

avr-objcopy -I ihex -O binary <input file> <output file>

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The parser here is the "colon :" . Ok I will try this , and make the bin file . This must make the Atmega to work with the new firmware.

Last Edited: Tue. Dec 4, 2018 - 04:01 PM