Recently I came to know that ELF file can hold the flash, fuse/lock as well as EEPROM contents in a single file which comes handy in many cases. avr/fuse.h allows the fuse bits to be set in code. I also noticed that on compilation, the arduino IDE generated an ELF file. Is there a way to upload an ELF file directly to arduino. I tried out using AVRDUDE 6.1 which has ELF file support. I used the following command line which I got from the arduino verbose mode and replaced the hex with ELF file:
avrdude.conf -v -patmega2560 -cwiring -PCOM5 -b115200 -D -Uflash:w:“C:\Users\SREEDEV K\AppData\Local\Temp\build8313256132960870781.tmp/sketch_apr06a.cpp.elf”:i
I obtained the following results as in the attached file which says that the file does not contain any hex info. So I was wondering whether I could program the fuses using avr/fuse.h and uploading the hex generated by the arduino IDE or should I go for the ELF itself. My ultimate aim is to use arduino as ISP to program the fuses of standalone microcontrollers. I think it is possible through avrdude command line, but I want to make it simpler by direct file uploading.