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.

Revisions

  1. bshambaugh revised this gist Dec 8, 2024. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -36,4 +36,13 @@ build_flags =
    ; $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
    ; $PLATFORMIO_CORE_DIR/packages/tool-openocd-esp32/share/openocd/scripts/board/esp32-c3-devkitm-1.cfg

    -----------------
    from cmd: ./arduino-ide_2.3.3_Linux_64bit.AppImage
    Tools > USB CDC ON BOOT "Enabled"
    Tools > Board : "DFRobot Beetle ESP32-C3"

    when plugging in press Boot button
    breifly press Reset button after plugging in continue keeping Boot button pressed
    Release Reset button then release Boot button
  2. bshambaugh created this gist Dec 8, 2024.
    39 changes: 39 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    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