ESP32-S2 Arduino UART1 & USB problem

allenpan
Posts: 5
Joined: Thu Jan 25, 2018 4:59 am

ESP32-S2 Arduino UART1 & USB problem

Postby allenpan » Tue Feb 09, 2021 4:33 pm

ESP32-S2 Arduino UART1 & USB problem

Hello i got 2 problems:

1) UART1, how do i defined the pin? i believe default GPIO18 = UART1RX and GPIO17 = UART1TX, but i can't seems to get it working with HardwareSerial or just simply calling Serial1... also how do i remap UART1's pins?

2) i use the USB example, to create USBCDC in arduino, but i can't get my pc/host to detect the USB serial connection

Miraculix
Posts: 20
Joined: Wed Sep 16, 2020 9:43 am

Re: ESP32-S2 Arduino UART1 & USB problem

Postby Miraculix » Tue Feb 09, 2021 6:03 pm

I think you need to install this driver. And compile your code with CDC enabled.
https://github.com/hathach/tinyusb

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

Re: ESP32-S2 Arduino UART1 & USB problem

Postby chegewara » Tue Feb 09, 2021 6:55 pm

Miraculix wrote: I think you need to install this driver. And compile your code with CDC enabled.
https://github.com/hathach/tinyusb
No, it is already compiled in arduino-esp32.
allenpan wrote: 2) i use the USB example, to create USBCDC in arduino, but i can't get my pc/host to detect the USB serial connection
This example requires to connect pins 19/20 (D+/D-) to USB port. You can cut regular USB cable.
https://docs.espressif.com/projects/esp ... connection

Who is online

Users browsing this forum: No registered users and 192 guests