Skip to content

Add Information for Enabling UART Debugging on JTAG-based MCUs (i.e. ESP32S3) #5251

@mortification77

Description

@mortification77

Feedback

Add to "Logger Component" Docs:

In order to ENABLE LOGGING using "framework: arduino" on MCUs with a USB JTAG Serial Port (i.e. Some ESP32-S3 Models), the following BUILD FLAGS must be defined:

-D CORE_DEBUG_LEVEL=5
-D ARDUINO_USB_CDC_ON_BOOT=1

Example:

esphome:
  platformio_options:
    build_flags:
      - -DARDUINO_USB_MODE=1
      - -DARDUINO_USB_CDC_ON_BOOT=1

logger:
  level:            DEBUG
  hardware_uart:    USB_CDC

URL

https://esphome.io/components/logger.html

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions