Last active
December 8, 2024 19:53
-
-
Save bshambaugh/51c813996071eb3b82a8cc06b29268d0 to your computer and use it in GitHub Desktop.
programming esp32-c3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
----------------- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment