flashing without the esptool.py

dani619
Posts: 1
Joined: Wed Oct 23, 2019 8:31 am

flashing without the esptool.py

Postby dani619 » Wed Oct 23, 2019 9:09 am

Hello,
I want to flash esp32 without using the esptool.py because it uses python.
I want to be able to flash the binaries using only c.
is there a tool for that or do I need to port esptool.py myself?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: flashing without the esptool.py

Postby ESP_Angus » Thu Oct 24, 2019 11:56 pm

Hi dani619,

There's no officially supported C tool for flashing an ESP32. There have been some community projects but I'm unsure of their status, you can search the forum to find some discussion about them.

If you only need a way to run esptool without a separate Python environment installation, then the Arduino-ESP32 ships bundled versions of esptool.py as standalone executables for Windows, macOS, Linux. Download links can be found here:
https://github.com/espressif/arduino-es ... e.json#L97

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

Re: flashing without the esptool.py

Postby meowsqueak » Wed Feb 16, 2022 10:33 pm

the Arduino-ESP32 ships bundled versions of esptool.py as standalone executables for Windows, macOS, Linux
Unfortunately the Linux tarballs just contain `esptool.py` without any dependencies included, unlike the Windows (i686-mingw32) download which contains a standalone esptool.exe.

It would be nice to have a zero-dependency C utility for flashing the ESP32 since it could be integrated with other embedded software. Depending on Python is very heavy, and OTA isn't always an option.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: flashing without the esptool.py

Postby ESP_Sprite » Thu Feb 17, 2022 3:16 am

Note that this is an old post; since then we developed a C library specifically for flashing from other embedded devices.

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

Re: flashing without the esptool.py

Postby meowsqueak » Thu Feb 17, 2022 4:05 am

Alright, this is exactly what I am looking for! Thank you. Although I only found it because of your reply... is this mentioned in the docs somewhere?

marbalon
Posts: 23
Joined: Wed Dec 20, 2017 11:02 am

Re: flashing without the esptool.py

Postby marbalon » Tue Apr 02, 2024 12:15 pm

It is great news that flasher can be built as C app on any MCU, but what about fuse bits programming? I need this also.

Who is online

Users browsing this forum: atx823, MicroController and 143 guests