The new combined firmware starts flashing at offset 0, no need to flash system-info or partitions any more.

This commit is contained in:
Thomas Göttgens
2022-10-01 09:46:56 +02:00
parent b0712c4186
commit e98c11ff89
4 changed files with 7 additions and 10 deletions
+2 -4
View File
@@ -29,13 +29,11 @@ IF "__%FILENAME%__" == "____" (
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
%PYTHON% -m esptool --baud 115200 write_flash 0x00 %FILENAME%
%PYTHON% -m esptool --baud 115200 write_flash 0x260000 bleota.bin
for %%f in (littlefs-*.bin) do (
%PYTHON% -m esptool --baud 115200 write_flash 0x300000 %%f
)
%PYTHON% -m esptool --baud 115200 write_flash 0x10000 %FILENAME%
%PYTHON% -m esptool --baud 115200 write_flash 0x260000 bleota.bin
) else (
echo "Invalid file: %FILENAME%"
goto HELP