Firmware.hex

0 views
Skip to first unread message

Cherish Asleson

unread,
Aug 3, 2024, 1:14:27 PM8/3/24
to penretode

If you have the .hex file, just objcopy it into a .bin file. In a VSCode Terminal, and assuming the .hex file is located in a relative path .pio\build\ATmega2560\firmware.hex, and a Windows username of Max you can execute

You need the .hex if you are loading it through a loader such as cura etc, without the loader you can insert a microSD card and if there is a .bin file it will install this upon booting up. it does not recognise a .hex as a bootable image.

I downloaded a updated version of some firmware, and need to compile it into a firmware.bin file, (firmware.hex will not work). Most of the tutorials online said to use PlatformIO for this, but whenever I build the firmware, everything goes as planed, it compiles without any errors and says that it succeeded. However, on most youtube videos or online documents, the last few lines include something like

And sure enough, there is a firmware.elf and firmware.hex, but no firmware.bin. Many other places say that platformio creates a .bin file by default, so I don't think it was something I forgot to do, but then what was it? Do I need to edit my Platformio.ini file, or something else?

c80f0f1006
Reply all
Reply to author
Forward
0 new messages