diff --git a/bin/device-install.bat b/bin/device-install.bat index d6a034a4..a7a6743e 100755 --- a/bin/device-install.bat +++ b/bin/device-install.bat @@ -30,8 +30,9 @@ IF EXIST %FILENAME% ( echo Trying to flash update %FILENAME%, but first erasing and writing system information" %PYTHON% -m esptool --baud 115200 erase_flash %PYTHON% -m esptool --baud 115200 write_flash 0x1000 system-info.bin + %PYTHON% -m esptool --baud 115200 write_flash 0x8000 partitions.bin for %%f in (littlefs-*.bin) do ( - %PYTHON% -m esptool --baud 115200 write_flash 0x2B0000 %%f + %PYTHON% -m esptool --baud 115200 write_flash 0x300000 %%f ) %PYTHON% -m esptool --baud 115200 write_flash 0x10000 %FILENAME% ) else ( diff --git a/bin/device-install.sh b/bin/device-install.sh index 95383405..d1f4ba15 100755 --- a/bin/device-install.sh +++ b/bin/device-install.sh @@ -48,7 +48,8 @@ if [ -f "${FILENAME}" ]; then echo "Trying to flash ${FILENAME}, but first erasing and writing system information" "$PYTHON" -m esptool erase_flash "$PYTHON" -m esptool write_flash 0x1000 system-info.bin - "$PYTHON" -m esptool write_flash 0x2B0000 littlefs-*.bin + "$PYTHON" -m esptool write_flash 0x8000 partitions.bin + "$PYTHON" -m esptool write_flash 0x300000 littlefs-*.bin "$PYTHON" -m esptool write_flash 0x10000 ${FILENAME} else echo "Invalid file: ${FILENAME}" diff --git a/images/system-info.bin b/images/system-info.bin index 7ba5adc0..85acfca1 100644 Binary files a/images/system-info.bin and b/images/system-info.bin differ diff --git a/partition-table.csv b/partition-table.csv index 131b9bc8..e0d44cf7 100644 --- a/partition-table.csv +++ b/partition-table.csv @@ -1,7 +1,8 @@ # FIXME! using the genpartitions based table doesn't work on TTGO so for now I stay with my old memory map # 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, 0x2A0000, -spiffs, data, spiffs, 0x2B0000,0x150000, \ No newline at end of file +nvs, data, nvs, 0x009000, 0x005000, +otadata, data, ota, 0x00e000, 0x002000, +app, app, ota_0, 0x010000, 0x250000, +flashApp, app, ota_1, 0x260000, 0x0A0000, +spiffs, data, spiffs, 0x300000, 0x100000, \ No newline at end of file