-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from softhack007/esp32-S2_patch2
Esp32 s2 patch2 - debug improvement, and starting to collect some esp32 tools
- Loading branch information
Showing
5 changed files
with
342 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
;; framework = arduino | ||
;; monitor_speed = 115200 | ||
;; upload_speed = 115200 | ||
;; build_type = debug | ||
;; build_type = release | ||
|
||
[starmod] | ||
lib_deps = | ||
|
@@ -79,20 +81,24 @@ lib_deps = | |
|
||
[env:lolin_s2_mini] | ||
board = lolin_s2_mini ;https://github.com/platformio/platform-espressif32/blob/develop/boards/lolin_s2_mini.json | ||
platform = [email protected] | ||
;; platform = [email protected] ;; WLED default framework version | ||
platform = [email protected] ;; this one behaves better for debugging | ||
framework = arduino | ||
upload_speed = 256000 | ||
monitor_speed = 115200 | ||
board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions) | ||
monitor_filters = esp32_exception_decoder | ||
board_build.filesystem = littlefs | ||
build_unflags = | ||
; -DARDUINO_USB_CDC_ON_BOOT=1 ;; un-comment if you want to use a "real" serial-to-USB moddule | ||
build_flags = | ||
-DCONFIG_IDF_TARGET_ESP32S2=1 | ||
-DCONFIG_ASYNC_TCP_USE_WDT=0 | ||
-DLFS_THREADSAFE ;; enables use of semaphores in LittleFS driver | ||
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_DFU_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 ;; for debugging over USB | ||
; -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 ;; without USB debug (use in case your board hangs without USB connection) | ||
; -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 ;; with serial-to-USB moddule (use in case your board hangs without USB connection) | ||
-DARDUINO_USB_MODE=0 ;; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (mandatory on -S2) | ||
; -D DEBUG=1 -D CORE_DEBUG_LEVEL=1 -D ARDUINOJSON_DEBUG=1 ;; for more debug output | ||
${appmod_leds.build_flags} | ||
${usermod_e131.build_flags} | ||
; ${usermod_ha.build_flags} | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.