From fe10d6b4d13992a63273b8f43c980f1c646d0a0e Mon Sep 17 00:00:00 2001 From: tobozo Date: Fri, 16 Jun 2023 12:29:29 +0200 Subject: [PATCH] Enabled platformio support for CoreS3 --- ESP32-BLECollector/Settings.h | 2 +- platformio.ini | 42 ++++++++++++++++++++++++++++------- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/ESP32-BLECollector/Settings.h b/ESP32-BLECollector/Settings.h index 0b2f70d..33fd34a 100644 --- a/ESP32-BLECollector/Settings.h +++ b/ESP32-BLECollector/Settings.h @@ -201,7 +201,7 @@ static void destroyTaskNow( TaskHandle_t &task ) #if HAS_EXTERNAL_RTC #include - #include "RTC.h" + #include "./RTC.h" static BLE_RTC RTC; #endif diff --git a/platformio.ini b/platformio.ini index 095ba60..a8c3b88 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,32 +24,32 @@ default_envs = m5stack-core2 ;platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1-RC1 platform = https://github.com/tasmota/platform-espressif32 platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esp32-2.0.9.zip - framework = arduino upload_speed = 921600 monitor_speed = 115200 +;lib_ldf_mode = deep build_flags = -DCORE_DEBUG_LEVEL=2 lib_deps = ; SPI -; SD + SD + LovyanGFX + git+https://github.com/tobozo/ESP32-Chimera-Core#1.5.0 + git+https://github.com/tobozo/M5Stack-SD-Updater#1.2.8 + NimBLE-Arduino FS SPI Wire - LovyanGFX - ESP32-Chimera-Core Time ;M5Stack-SD-Updater - git+https://github.com/tobozo/M5Stack-SD-Updater#1.2.8 Sqlite3Esp32 TinyGPSPlus - NimBLE-Arduino + [env:m5stack-fire] board = m5stack-fire board_build.partitions = default_16MB.csv - -upload_port = /dev/ttyUSB0 +upload_port = /dev/ttyACM0 ;board_upload.flash_size=4MB ;board_build.f_flash = 80000000L @@ -86,6 +86,28 @@ lib_deps = lib_ignore = M5Core2 +[env:m5stack-cores3] +board = esp32-s3-devkitc-1 +board_upload.flash_size = 16MB +;board_upload.maximum_size = 2097152 +;board_upload.maximum_size = 3145728 +board_build.arduino.memory_type = qio_qspi +build_flags = + ${env.build_flags} + -DARDUINO_M5STACK_CORES3 + -DBOARD_HAS_PSRAM + -DARDUINO_UDB_MODE=1 +build_src_flags = + -DWITHOUT_WIFI=1 +lib_deps = + ${env.lib_deps} +lib_ignore = + M5Stack + M5Core2 + M5CoreS3 + SD_MMC + + [env:odroid_esp32] board = odroid_esp32 board_build.partitions = min_spiffs.csv @@ -94,3 +116,7 @@ build_src_flags = lib_deps = ${env.lib_deps} + + + +