Skip to content

Native USB debugging on ESP32 in PlatformIO without ESP-IDF toolchain? #7879

Closed Answered by Jason2866
papakpmartin asked this question in Q&A
Discussion options

You must be logged in to vote

Use a custom boards.json for your DIY board. Like this assuming no PSRAM. Name it for example esp32s2-cdc.json Make a new folder boards in your root folder of the project. Place your created json file there

{
  "build": {
    "arduino":{
      "ldscript": "esp32s2_out.ld"
    },
    "core": "esp32",
    "extra_flags": [
      "-DARDUINO_USB_CDC_ON_BOOT=1"
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "qio",
    "mcu": "esp32s2",
    "variant": "esp32s2"
  },
  "connectivity": [
    "wifi"
  ],
  "debug": {
    "openocd_target": "esp32s2.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "ESP32-S2 CDC",
  "upload": {
    "flash_size": "…

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@papakpmartin
Comment options

@papakpmartin
Comment options

@papakpmartin
Comment options

@papakpmartin
Comment options

Answer selected by papakpmartin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@papakpmartin
Comment options

@papakpmartin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants