From 7bf93366c072d1baafc9235abad9d607052b5542 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 16 Jul 2020 22:41:24 +0200 Subject: [PATCH] added littleFS --- platformio.ini | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/platformio.ini b/platformio.ini index abf00c81d..103a6b6d5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,8 +1,8 @@ ; PlatformIO Project Configuration File for EMS-ESP [platformio] -; default_envs = esp8266 -default_envs = esp32 +default_envs = esp8266 +; default_envs = esp32 # override any settings with your own local ones in pio_local.ini extra_configs = @@ -41,38 +41,40 @@ extra_scripts = scripts/main_script.py framework = arduino - monitor_speed = 115200 upload_speed = 921600 +lib_ldf_mode = chain+ + check_tool = cppcheck, clangtidy check_severity = high, medium check_flags = - cppcheck: --std=c++11 + cppcheck: --std=c++11 -v clangtidy: --checks=-*,clang-analyzer-*,performance-* ; USB upload -upload_protocol = esptool -upload_port = COM6 +; upload_protocol = esptool +; upload_port = COM6 ; upload_port = /dev/cu.wchusbserial1420 ; OTA upload -; upload_protocol = espota -; upload_flags = -; --port=8266 -; --auth=ems-esp-neo -; upload_port = ems-esp.local +upload_protocol = espota +upload_flags = + --port=8266 + --auth=ems-esp-neo +upload_port = ems-esp.local [env:esp8266] board = esp12e ; https://github.com/platformio/platform-espressif8266/tree/master/boards build_type = release platform = espressif8266 ; https://github.com/platformio/platform-espressif8266/releases +board_build.filesystem = littlefs lib_deps = ${common.libs_core} board_build.f_cpu = 160000000L ; 160MHz ; eagle.flash.4m1m.ld = 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer ; eagle.flash.4m2m.ld = 1019 KB sketch, 2024 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 1028 KB OTA & buffer ; board_build.ldscript = eagle.flash.4m2m.ld -build_flags = ${common.build_flags} ${common.debug_flags} -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY +build_flags = ${common.build_flags} ${common.debug_flags} lib_ignore = AsyncTCP