Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
Last active December 8, 2024 19:53
Show Gist options
  • Select an option

  • Save bshambaugh/51c813996071eb3b82a8cc06b29268d0 to your computer and use it in GitHub Desktop.

Select an option

Save bshambaugh/51c813996071eb3b82a8cc06b29268d0 to your computer and use it in GitHub Desktop.
programming esp32-c3
https://community.platformio.org/t/enabling-usb-cdc-on-boot-on-esp32-c3-devkit/33346/2 (for platform.io)
config:
------------
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
;[env:esp32-c3-devkitm-1]
[env:dfrobot_beetle_esp32c3]
platform = espressif32
;board = esp32-c3-devkitm-1
board = dfrobot_beetle_esp32c3
;framework = espidf
framework = arduino
;upload_protocol = esp-builtin
;debug_tool = esp-builtin
monitor_speed = 115200
upload_speed = 921600
build_flags =
;-D ARDUINO_USB_CDC_ON_BOOT=1
;-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
;build_type = debug
;debug_init_break = break setup
;debug_server =
; $PLATFORMIO_CORE_DIR/packages/tool-openocd-esp32/bin/openocd
; -f
; $PLATFORMIO_CORE_DIR/packages/tool-openocd-esp32/share/openocd/scripts/board/esp32c3-builtin.cfg
; $PLATFORMIO_CORE_DIR/packages/tool-openocd-esp32/share/openocd/scripts/board/esp32-c3-devkitm-1.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment