Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to convert bootloader elf file into bin file #8140

Answered by mrengineer7777
alf45tar asked this question in Q&A
Discussion options

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

You must be logged in to vote

@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

Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

@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

You must be logged in to vote
3 replies
Comment options

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

Comment options

192.168.1.128

Comment options

192.168.1.128l

Answer selected by alf45tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /