Use ESP32 Board to Program Another EPS32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Phisatho
Posts: 10
Joined: Mon Jul 18, 2022 9:18 am

Use ESP32 Board to Program Another EPS32

Post by Phisatho » Mon Jul 18, 2022 9:36 am

Hi,
I am about to buy a new ESP32 board which does not have CP2102 interface. I will have to buy a USB to TTL serial adaptor. My question is - Can I use an ESP32 board with the UART-USB pass-through example https://docs.micropython.org/en/latest/ ... rough.html instead of a serial adaptor to program the new board?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Use ESP32 Board to Program Another EPS32

Post by jimmo » Tue Jul 19, 2022 1:32 am

Phisatho wrote:
Mon Jul 18, 2022 9:36 am
I am about to buy a new ESP32 board which does not have CP2102 interface. I will have to buy a USB to TTL serial adaptor. My question is - Can I use an ESP32 board with the UART-USB pass-through example https://docs.micropython.org/en/latest/ ... rough.html instead of a serial adaptor to program the new board?
Potentially yes, but it will be much more convenient to get a USB/UART adaptor (e.g. FTDI), and just a handy thing to have in your electronics toolbox.

One thing the ESP32 boards with built-in CP2102 (or equivalent) do is use the RTS/CTS lines to toggle the bootloader. This will not be possible using an ESP32 as an adaptor.

Phisatho
Posts: 10
Joined: Mon Jul 18, 2022 9:18 am

Re: Use ESP32 Board to Program Another EPS32

Post by Phisatho » Tue Jul 19, 2022 4:23 am

I have a couple of adaptors in my drawer where I live. At the moment, I am in my home country.

So, to use ESP32 as the adaptor to flash micropython, will pressing the boot button before flashing do the job?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Use ESP32 Board to Program Another EPS32

Post by jimmo » Tue Jul 19, 2022 6:08 am

Phisatho wrote:
Tue Jul 19, 2022 4:23 am
So, to use ESP32 as the adaptor to flash micropython, will pressing the boot button before flashing do the job?
I haven't tried it, but yes I would imagine this should be possible.

Phisatho
Posts: 10
Joined: Mon Jul 18, 2022 9:18 am

Re: Use ESP32 Board to Program Another EPS32

Post by Phisatho » Wed Jul 20, 2022 1:29 pm

Thanks. I will give it a try and report later.

Post Reply