You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add mandatory build flags for -S2 and -C3 (virtual USB)
I was wondering why sometimes the new MCUs still work better in Arduino IDE, so compared our build flags to what is used in Arduino IDE:
-S2 always has -DARDUINO_USB_MODE=0
-C3 always has -DARDUINO_USB_MODE=1
-S3 supports all possible modes
-DARDUINO_USB_MODE=0 ;; this flag is mandatory for ESP32-S2 !
235
+
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
251
+
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
252
+
;; ARDUINO_USB_CDC_ON_BOOT
246
253
247
254
lib_deps =
248
255
${env.lib_deps}
@@ -258,6 +265,8 @@ build_flags = -g
258
265
-DCONFIG_IDF_TARGET_ESP32S3
259
266
-D CONFIG_ASYNC_TCP_USE_WDT=0
260
267
-DCO
268
+
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
0 commit comments