Skip to content

{bp-20053} xtensa/esp32s3: Fix CONSOLE_DEV clobbered by USBSERIAL macro. - #20080

Merged
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-20053
Sep 7, 2026
Merged

{bp-20053} xtensa/esp32s3: Fix CONSOLE_DEV clobbered by USBSERIAL macro.#20080
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-20053

Conversation

@jerpelea

@jerpelea jerpelea commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

When a real UART (CONFIG_UARTx_SERIAL_CONSOLE) is selected as the system console while CONFIG_ESP32S3_USBSERIAL is also enabled (e.g. to keep /dev/ttyACM0 available as a secondary device alongside an external console UART), the unconditional

#ifdef CONFIG_ESP32S3_USBSERIAL

define CONSOLE_DEV g_uart_usbserial

#endif

block silently redefines CONSOLE_DEV, clobbering the correct earlier definition that pointed it at the chosen UART device.

Confirmed on real hardware (Seeed XIAO ESP32-S3): with UART0 selected as console and USBSERIAL also enabled, the board boot-looped on RTCWDT_RTC_RST every ~8s, never reaching NSH. With this fix, NSH comes up normally over UART0 and /dev/ttyACM0 remains available.

Impact

RELEASE

Testing

CI

When a real UART (CONFIG_UARTx_SERIAL_CONSOLE) is selected as the
system console while CONFIG_ESP32S3_USBSERIAL is also enabled (e.g. to
keep /dev/ttyACM0 available as a secondary device alongside an
external console UART), the unconditional

  #ifdef CONFIG_ESP32S3_USBSERIAL
  #  define CONSOLE_DEV g_uart_usbserial
  #endif

block silently redefines CONSOLE_DEV, clobbering the correct earlier
definition that pointed it at the chosen UART device.

Confirmed on real hardware (Seeed XIAO ESP32-S3): with UART0 selected
as console and USBSERIAL also enabled, the board boot-looped on
RTCWDT_RTC_RST every ~8s, never reaching NSH. With this fix, NSH comes
up normally over UART0 and /dev/ttyACM0 remains available.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
Assisted-by: Claude:claude-sonnet-5
@github-actions github-actions Bot added Arch: xtensa Issues related to the Xtensa architecture Size: M The size of the change in this PR is medium labels Sep 7, 2026
@jerpelea

jerpelea commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

CI fix
apache/nuttx-apps#3775

@xiaoxiang781216
xiaoxiang781216 merged commit 888b26b into apache:releases/13.0 Sep 7, 2026
19 of 41 checks passed
@jerpelea
jerpelea deleted the bp-20053 branch September 7, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: xtensa Issues related to the Xtensa architecture Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants