EDIT: Solved, see below.
I can't get UART1 & USB working simultaneously. Does the USB HCI use UART1? If so, I can't find anything in the documentation indicating that.
ESP32S2: UART1 + USB
ESP32S2: UART1 + USB
Last edited by KWolfe81 on Fri Jan 07, 2022 8:20 pm, edited 1 time in total.
Re: ESP32S2: UART1 + USB
EDIT: Deleted, solved issue, see below.
Last edited by KWolfe81 on Fri Jan 07, 2022 8:23 pm, edited 3 times in total.
Re: ESP32S2: UART1 + USB
Solved!
Two things:
1) Forgot to set
2) Looks like UART1 & USB share an interrupt. You need to set in the call to uart_driver_install()
Two things:
1) Forgot to set
Code: Select all
#define CFG_TUSB_MCU OPT_MCU_ESP32S2
Code: Select all
intr_alloc_flags = ESP_INTR_FLAG_SHARED;
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 107 guests