From 21ba6116a3cc91c2d202b4774d690604d8e6ff1a Mon Sep 17 00:00:00 2001 From: Alex Wolden Date: Tue, 4 Mar 2025 10:07:49 -0800 Subject: [PATCH] fix memory --- default_4MB.csv | 5 ----- platformio.ini | 10 ++++++---- 2 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 default_4MB.csv diff --git a/default_4MB.csv b/default_4MB.csv deleted file mode 100644 index 8fb2b093..00000000 --- a/default_4MB.csv +++ /dev/null @@ -1,5 +0,0 @@ -# Name, Type, SubType, Offset, Size, Flags -nvs, data, nvs, 0x9000, 0x5000, -otadata, data, ota, 0xe000, 0x2000, -app0, app, ota_0, 0x10000, 0x300000, -spiffs, data, spiffs, 0x310000,0xF0000, \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index f3fdc6f9..ed5118c2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -323,14 +323,13 @@ lib_deps = [LilyGo_T3_sx1276] extends = esp32_base board = ttgo-lora32-v1 ; TTGO/LilyGo T3 V1 ESP32 with SX1276 -board_build.partitions = default_4MB.csv ; Use the 4MB partition to allocate more space for firmware build_unflags = -Os build_type = release ; Set build type to release +board_build.partitions = min_spiffs.csv ; get around 4mb flash limit build_flags = ${esp32_base.build_flags} -Os -ffunction-sections -fdata-sections ; Optimize for size -D LILYGO_T3 - -D HELTEC_LORA_V2 ; Needed for CustomSX1276 support -D P_LORA_DIO_0=26 ; SX1276 DIO0 interrupt pin -D P_LORA_DIO_1=33 ; SX1276 DIO1 interrupt pin -D P_LORA_NSS=18 ; Chip select - SS pin @@ -377,8 +376,11 @@ build_flags = -D ADVERT_LAT=-37.0 -D ADVERT_LON=145.0 -D ADMIN_PASSWORD="\"password\"" -; -D MESH_PACKET_LOGGING=1 -; -D MESH_DEBUG=1 + -D MESH_PACKET_LOGGING=1 + -D MESH_DEBUG=1 + -D CORE_DEBUG_LEVEL=3 + -D SPI_MAX_DMA_LEN=1024 + -D BLE_TASK_SIZE=4096 [env:LilyGo_T3_sx1276_terminal_chat] extends = LilyGo_T3_sx1276