Programming ESP32 using another ESP32

user_MicSG
Posts: 5
Joined: Thu May 27, 2021 11:56 pm

Programming ESP32 using another ESP32

Postby user_MicSG » Thu Sep 09, 2021 2:13 am

Hi. Is it possible to program an ESP32 using another ESP32? I have an ESP32 where the serial chip burned out when using 6 volts directly over the 5 volt pin :( .

I hope you can help me.
Greetings,
MicSG :D .

chegewara
Posts: 2306
Joined: Wed Jun 14, 2017 9:00 pm

Re: Programming ESP32 using another ESP32

Postby chegewara » Thu Sep 09, 2021 9:40 pm


WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Programming ESP32 using another ESP32

Postby WiFive » Thu Sep 09, 2021 9:42 pm

It should be possible if you hold the other esp32 in reset

user_MicSG
Posts: 5
Joined: Thu May 27, 2021 11:56 pm

Re: Programming ESP32 using another ESP32

Postby user_MicSG » Thu Sep 09, 2021 10:13 pm

chegewara wrote:
Thu Sep 09, 2021 9:40 pm
You can use USB to UART thing, like this:
https://www.amazon.com/usb-uart/s?k=usb+to+uart
https://www.amazon.com/USB-UART-Convert ... B01M33YNAP
Thanks. I still don't have a USB to serial converter. Is it possible to use an Arduino NANO as a converter? If so, what would it be like?
Greetings,
MicSG :D .

chegewara
Posts: 2306
Joined: Wed Jun 14, 2017 9:00 pm

Re: Programming ESP32 using another ESP32

Postby chegewara » Fri Sep 10, 2021 1:54 am

Like @WiFi said, you can use another esp32 board. UART chip on that board will pass data to fried board.
You have to connect (its not mistake, it is parallel connection):
- TX -> TX
- RX -> RX
- EN -> EX (optional)
- PIN0 -> PIN0 (optional)

More steps:
- when you dont connect EN and PIN) manually switch into bootload mode with buttons on fried board,
- keep pressed reset button on good board; it is important to not let esp32 on this board to start,
- flash.

That should do the trick.

LittleRain
Posts: 10
Joined: Wed May 05, 2021 7:33 am

Re: Programming ESP32 using another ESP32

Postby LittleRain » Sat Aug 05, 2023 1:35 am

I know this is an old thread, but for anyone googling in 2023+
https://github.com/espressif/esp-serial-flasher

User avatar
thezcx
Posts: 16
Joined: Mon May 01, 2023 12:21 am

Re: Programming ESP32 using another ESP32

Postby thezcx » Sat Aug 05, 2023 7:44 pm

Is there a way to do it over wifi or ble?

user_MicSG
Posts: 5
Joined: Thu May 27, 2021 11:56 pm

Re: Programming ESP32 using another ESP32

Postby user_MicSG » Mon Aug 07, 2023 1:27 am

thezcx wrote:
Sat Aug 05, 2023 7:44 pm
Is there a way to do it over wifi or ble?
Yes. Use OTA (Over-the-air).
Over WiFi: https://randomnerdtutorials.com/esp32-o ... ogramming/
By Bluettoth: https://github.com/fbiego/ESP32_BLE_OTA_Arduino
Greetings,
MicSG :D .

user_MicSG
Posts: 5
Joined: Thu May 27, 2021 11:56 pm

Re: Programming ESP32 using another ESP32

Postby user_MicSG » Mon Aug 07, 2023 1:28 am

LittleRain wrote:
Sat Aug 05, 2023 1:35 am
I know this is an old thread, but for anyone googling in 2023+
https://github.com/espressif/esp-serial-flasher
Thanks for the link
Greetings,
MicSG :D .

User avatar
thezcx
Posts: 16
Joined: Mon May 01, 2023 12:21 am

Re: Programming ESP32 using another ESP32

Postby thezcx » Thu Aug 17, 2023 2:01 am

user_MicSG wrote:
Mon Aug 07, 2023 1:27 am
thezcx wrote:
Sat Aug 05, 2023 7:44 pm
Is there a way to do it over wifi or ble?
Yes. Use OTA (Over-the-air).
Over WiFi: https://randomnerdtutorials.com/esp32-o ... ogramming/
By Bluettoth: https://github.com/fbiego/ESP32_BLE_OTA_Arduino
For deep sleep applications i cant use OTA. İm looking for a solution where i use the eps32 as ftdi board wirelessly

Who is online

Users browsing this forum: Nachiketlog9 and 111 guests