-
Notifications
You must be signed in to change notification settings - Fork 7.7k
How to convert bootloader elf file into bin file #8140
-
In the latest version of the framework bootloader bin files are not anymore provided by the Arduino framework but only elf files are present.
How to convert elf files into bin files?
Thanks
alf45tar
Beta Was this translation helpful? Give feedback.
All reactions
@alf45tar Yes, that is the correct way to convert .elf to .bin files. I'm not familiar with Arduino core providing BIN files even in earlier versions. I get my binaries (including bootloader) from here:
C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECT_NAME.pio\build\WORKSPACE_NAME
Replies: 3 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
All reactions
-
I am using PlatformIO on macOS and the following command:
~/.platformio/penv/bin/python ~/.platformio/packages/tool-esptoolpy/esptool.py --chip ESP32 elf2image ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.elf
Beta Was this translation helpful? Give feedback.
All reactions
-
@alf45tar Yes, that is the correct way to convert .elf to .bin files. I'm not familiar with Arduino core providing BIN files even in earlier versions. I get my binaries (including bootloader) from here:
C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECT_NAME.pio\build\WORKSPACE_NAME
Beta Was this translation helpful? Give feedback.
All reactions
-
All files if you are making your own flash script:
python Locally installed python version. See also C:\Users\USERNAME.platformio\penv\Scripts\python.exe.
esptool C:\Users\USERNAME.platformio\packages\tool-esptoolpy\esptool.py
boot_app0 C:\Users\USERNAME.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin
bootloader C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECTNAME.pio\build\PROJECTNAME-Release\bootloader.bin
partitions C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECTNAME.pio\build\PROJECTNAME-Release\partitions.bin
firmware C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECTNAME.pio\build\PROJECTNAME-Release\firmware.bin
spiffs C:\Users\USERNAME\Documents\PlatformIO\Projects\PROJECTNAME.pio\build\PROJECTNAME-Release\spiffs.bin
Beta Was this translation helpful? Give feedback.
All reactions
-
192.168.1.128
Beta Was this translation helpful? Give feedback.
All reactions
-
192.168.1.128l
Beta Was this translation helpful? Give feedback.