Use UART0 and USB-bridge to read file from e.g. pc

cpehonk
Posts: 18
Joined: Sat Nov 09, 2019 3:41 pm

Use UART0 and USB-bridge to read file from e.g. pc

Postby cpehonk » Sat Jan 03, 2026 5:13 am

Hi all,

I would like to use UART0 and the built-in USB-UART bridge to send a basic WLAN configuration file to the ESP32. I tried this based on the UART examples, but everytime I send the file to the ESP32, it resets. What am I doing wrong? How can I use the USB-UART bridge for my purposes? I am using the Wemos Lolin32 module.

Greetings,
Chris

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Use UART0 and USB-bridge to read file from e.g. pc

Postby MicroController » Sat Jan 03, 2026 5:59 pm

To use the USB-UART in your firmware you have to pay attention to the DTR and RTS signals of the virtual UART as they are used to reset the ESP and put it into download mode. If an application (PC side) messes with those signals when opening a COM port, this can reset the ESP.

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest