Update platformio.ini

This commit is contained in:
Luc 2021-11-21 09:53:58 +08:00
parent 36a7a62e2b
commit db140ffa24

View File

@ -40,10 +40,14 @@ lib_ignore =
ESPAsyncTCP
[env:esp32-S2]
;EXPERIMENTAL AND NOT WORKING FOR ME
;it seems it cannot write settings to flash and so go dead loop.
;No official support yet, check https://github.com/platformio/platform-espressif32/issues/619
;I currently use arduino IDE to build the project and upload it to the S2 board
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
board = esp32-s2-saola-1
framework = arduino
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-master
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
monitor_speed = 115200
monitor_flags = --echo
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
@ -51,7 +55,7 @@ board_build.f_cpu = 240000000L
board_build.mcu = esp32s2
; set frequency to 80MHz
board_build.f_flash = 80000000L
board_build.flash_mode = dio
board_build.flash_mode = qio
; None
build_flags = -DCORE_DEBUG_LEVEL=0 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0
board_build.partitions = min_spiffs.csv