mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2025-01-21 21:20:12 +00:00
Fixes Flashing Error
On some user systems, the ESP-32 needs time to recover after the erase command. Adding a PAUSE after the erase command allows the ESP-32 to recover and flash successfully.
This commit is contained in:
parent
1683cc92e0
commit
8203e46d22
Binary file not shown.
@ -53,6 +53,8 @@ set last_firmware=
|
|||||||
for /f "tokens=1" %%F in ('dir Marauder\esp32_marauder*flipper.bin /b /o-n') do set last_firmware=%%F
|
for /f "tokens=1" %%F in ('dir Marauder\esp32_marauder*flipper.bin /b /o-n') do set last_firmware=%%F
|
||||||
IF [!last_firmware!]==[] echo Please get and copy the last firmware from ESP32Marauder's Github Releases & GOTO ERREXIT
|
IF [!last_firmware!]==[] echo Please get and copy the last firmware from ESP32Marauder's Github Releases & GOTO ERREXIT
|
||||||
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset erase_region 0x9000 0x6000
|
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset erase_region 0x9000 0x6000
|
||||||
|
echo Firmware Erased, ready to write - press any key to continue
|
||||||
|
pause>nul
|
||||||
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 Marauder\bootloader.bin 0x8000 Marauder\partitions.bin 0x10000 Marauder\!last_firmware!
|
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 Marauder\bootloader.bin 0x8000 Marauder\partitions.bin 0x10000 Marauder\!last_firmware!
|
||||||
GOTO DONE
|
GOTO DONE
|
||||||
|
|
||||||
@ -100,6 +102,8 @@ IF EXIST FlipperBlackmagic\nvs.bin (
|
|||||||
) ELSE (
|
) ELSE (
|
||||||
echo Flashing Flipper Blackmagic without WiFi Settings restore
|
echo Flashing Flipper Blackmagic without WiFi Settings restore
|
||||||
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset erase_region 0x9000 0x6000
|
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset erase_region 0x9000 0x6000
|
||||||
|
echo Firmware Erased, ready to write - press any key to continue
|
||||||
|
pause>nul
|
||||||
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 FlipperBlackmagic\bootloader.bin 0x8000 FlipperBlackmagic\partition-table.bin 0x10000 FlipperBlackmagic\blackmagic.bin
|
esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 FlipperBlackmagic\bootloader.bin 0x8000 FlipperBlackmagic\partition-table.bin 0x10000 FlipperBlackmagic\blackmagic.bin
|
||||||
)
|
)
|
||||||
GOTO DONE
|
GOTO DONE
|
||||||
@ -125,4 +129,4 @@ GOTO ERREXIT
|
|||||||
echo.
|
echo.
|
||||||
echo (You may now close this window or press any key to exit.)
|
echo (You may now close this window or press any key to exit.)
|
||||||
pause>nul
|
pause>nul
|
||||||
exit
|
exit
|
Loading…
Reference in New Issue
Block a user