grow our app space in flash

1.2-legacy
geeksville 2020-02-01 09:46:25 -08:00
rodzic 2529189a08
commit 1bda9c953e
4 zmienionych plików z 26 dodań i 1 usunięć

14
TODO.md 100644
Wyświetl plik

@ -0,0 +1,14 @@
# High priority
* add mesh layer
* wrap in nice MeshRadio class
# Medium priority
* add interrupt detach/sleep mode config to lora radio so we can enable deepsleep without panicing
# Done
* change the partition table to take advantage of the 4MB flash on the wroom: http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables

Wyświetl plik

@ -0,0 +1,7 @@
# This is a layout for 4MB of flash
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x1c0000,
app1, app, ota_1, 0x1d0000,0x1c0000,
spiffs, data, spiffs, 0x390000,0x070000,
1 # This is a layout for 4MB of flash
2 # Name, Type, SubType, Offset, Size, Flags
3 nvs, data, nvs, 0x9000, 0x5000,
4 otadata, data, ota, 0xe000, 0x2000,
5 app0, app, ota_0, 0x10000, 0x1c0000,
6 app1, app, ota_1, 0x1d0000,0x1c0000,
7 spiffs, data, spiffs, 0x390000,0x070000,

Wyświetl plik

@ -15,6 +15,10 @@ platform = espressif32
board = ttgo-t-beam
framework = arduino
; customize the partition table
; http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables
board_build.partitions = partition-table.csv
; note: we add src to our include search path so that lmic_project_config can override
build_flags = -Wall -Wextra -Wno-missing-field-initializers -O3 -Wl,-Map,.pio/build/esp32/output.map
; -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG

Wyświetl plik

@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DEBUG_PORT Serial // Serial debug port
#define SERIAL_BAUD 115200 // Serial debug baud rate
#define SLEEP_BETWEEN_MESSAGES true // Do sleep between messages
#define SLEEP_BETWEEN_MESSAGES false // Do sleep between messages
#define SEND_INTERVAL (5 * 60 * 1000) // Sleep for these many millis
#define MESSAGE_TO_SLEEP_DELAY 5000 // Time after message before going to sleep
#define LOGO_DELAY 5000 // Time to show logo on first boot