Moved old versions of Marauder to folder

This commit is contained in:
UberGuidoZ 2022-09-09 23:45:41 -07:00
parent 3d42a32d9a
commit 8fbf25a772
8 changed files with 482 additions and 482 deletions

View File

@ -1,92 +1,92 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
:: Basic error checks :: Basic error checks
IF NOT EXIST esptool.exe GOTO ESPERROR IF NOT EXIST esptool.exe GOTO ESPERROR
set BR=921600 set BR=921600
for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A" for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A"
if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW
echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.) echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.)
echo Otherwise please check or reconnect the USB connection with the DevBoard. echo Otherwise please check or reconnect the USB connection with the DevBoard.
GOTO ERREXIT GOTO ERREXIT
:CHOOSE_FW :CHOOSE_FW
echo. echo.
echo Which action to perform? echo Which action to perform?
echo. echo.
echo 1. Flash Marauder echo 1. Flash Marauder
echo 2. Update Marauder echo 2. Update Marauder
echo. echo.
set choice_fw= set choice_fw=
set /p choice_fw= Type choice and hit enter: set /p choice_fw= Type choice and hit enter:
if '%choice_fw%'=='1' GOTO MARAUDER if '%choice_fw%'=='1' GOTO MARAUDER
if '%choice_fw%'=='2' GOTO UPDATE if '%choice_fw%'=='2' GOTO UPDATE
echo Please choose 1, or 2! echo Please choose 1, or 2!
ping 127.0.0.1 -n 5 ping 127.0.0.1 -n 5
cls cls
GOTO CHOOSE_FW GOTO CHOOSE_FW
:MARAUDER :MARAUDER
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
set last_firmware= 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
REM esptool.exe -p !_com! -b %BR% -c esp32s2 --before default_reset -a no_reset erase_region 0x9000 0x6000 REM 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 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
:UPDATE :UPDATE
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Please download flipper BIN file to Marauder folder and rerun Flasher. echo Please download flipper BIN file to Marauder folder and rerun Flasher.
echo. echo.
echo Press any key to open Marauder download location in default browser... echo Press any key to open Marauder download location in default browser...
pause>NUL pause>NUL
start https://github.com/justcallmekoko/ESP32Marauder/releases/latest start https://github.com/justcallmekoko/ESP32Marauder/releases/latest
GOTO ERREXIT GOTO ERREXIT
:DONE :DONE
echo. echo.
echo ----------------------------------------------------------------------------------------------- echo -----------------------------------------------------------------------------------------------
echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero. echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero.
echo. echo.
echo ========================================================================== echo ==========================================================================
echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try. echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try.
echo ========================================================================== echo ==========================================================================
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
:ESPERROR :ESPERROR
echo esptool.exe is missing. Please download and extract the full package. echo esptool.exe is missing. Please download and extract the full package.
GOTO ERREXIT GOTO ERREXIT
:ERREXIT :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

View File

@ -1,128 +1,128 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
:: Basic error checks :: Basic error checks
IF NOT EXIST esptool.exe GOTO ESPERROR IF NOT EXIST esptool.exe GOTO ESPERROR
set BR=921600 set BR=921600
for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A" for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A"
if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW
echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.) echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.)
echo Otherwise please check or reconnect the USB connection with the DevBoard. echo Otherwise please check or reconnect the USB connection with the DevBoard.
GOTO ERREXIT GOTO ERREXIT
:CHOOSE_FW :CHOOSE_FW
echo. echo.
echo Which action would you like to perform? echo Which action would you like to perform?
echo. echo.
echo 1. Flash Marauder echo 1. Flash Marauder
echo 2. Update Marauder echo 2. Update Marauder
echo 3. Save Flipper Blackmagic WiFi settings echo 3. Save Flipper Blackmagic WiFi settings
echo 4. Flash Flipper Blackmagic echo 4. Flash Flipper Blackmagic
echo. echo.
set choice_fw= set choice_fw=
set /p choice_fw= Type choice and hit enter: set /p choice_fw= Type choice and hit enter:
if '%choice_fw%'=='1' GOTO MARAUDER if '%choice_fw%'=='1' GOTO MARAUDER
if '%choice_fw%'=='2' GOTO UPDATE if '%choice_fw%'=='2' GOTO UPDATE
if '%choice_fw%'=='3' GOTO BACKUP if '%choice_fw%'=='3' GOTO BACKUP
if '%choice_fw%'=='4' GOTO FLIPPERBM if '%choice_fw%'=='4' GOTO FLIPPERBM
echo Please choose 1, or 2! echo Please choose 1, or 2!
ping 127.0.0.1 -n 5 ping 127.0.0.1 -n 5
cls cls
GOTO CHOOSE_FW GOTO CHOOSE_FW
:MARAUDER :MARAUDER
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
set last_firmware= 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
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
:UPDATE :UPDATE
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Please download flipper BIN file to Marauder folder and rerun Flasher. echo Please download flipper BIN file to Marauder folder and rerun Flasher.
echo. echo.
echo Press any key to open Marauder download location in default browser... echo Press any key to open Marauder download location in default browser...
pause>NUL pause>NUL
start https://github.com/justcallmekoko/ESP32Marauder/releases/latest start https://github.com/justcallmekoko/ESP32Marauder/releases/latest
GOTO ERREXIT GOTO ERREXIT
:BACKUP :BACKUP
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin" echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin"
esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin
GOTO DONE GOTO DONE
:FLIPPERBM :FLIPPERBM
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
IF EXIST FlipperBlackmagic\nvs.bin ( IF EXIST FlipperBlackmagic\nvs.bin (
echo Flashing Flipper Blackmagic with WiFi Settings restore echo Flashing Flipper Blackmagic with WiFi Settings restore
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 0x9000 FlipperBlackmagic\nvs.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 0x9000 FlipperBlackmagic\nvs.bin 0x10000 FlipperBlackmagic\blackmagic.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
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
:DONE :DONE
echo. echo.
echo ----------------------------------------------------------------------------------------------- echo -----------------------------------------------------------------------------------------------
echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero. echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero.
echo. echo.
echo ========================================================================== echo ==========================================================================
echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try. echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try.
echo ========================================================================== echo ==========================================================================
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
:ESPERROR :ESPERROR
echo esptool.exe is missing. Please download and extract the full package. echo esptool.exe is missing. Please download and extract the full package.
GOTO ERREXIT GOTO ERREXIT
:ERREXIT :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

View File

@ -1,132 +1,132 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
:: Basic error checks :: Basic error checks
IF NOT EXIST esptool.exe GOTO ESPERROR IF NOT EXIST esptool.exe GOTO ESPERROR
set BR=921600 set BR=921600
for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A" for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A"
if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW
echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.) echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.)
echo Otherwise please check or reconnect the USB connection with the DevBoard. echo Otherwise please check or reconnect the USB connection with the DevBoard.
GOTO ERREXIT GOTO ERREXIT
:CHOOSE_FW :CHOOSE_FW
echo. echo.
echo Which action would you like to perform? echo Which action would you like to perform?
echo. echo.
echo 1. Flash Marauder echo 1. Flash Marauder
echo 2. Update Marauder echo 2. Update Marauder
echo 3. Save Flipper Blackmagic WiFi settings echo 3. Save Flipper Blackmagic WiFi settings
echo 4. Flash Flipper Blackmagic echo 4. Flash Flipper Blackmagic
echo. echo.
set choice_fw= set choice_fw=
set /p choice_fw= Type choice and hit enter: set /p choice_fw= Type choice and hit enter:
if '%choice_fw%'=='1' GOTO MARAUDER if '%choice_fw%'=='1' GOTO MARAUDER
if '%choice_fw%'=='2' GOTO UPDATE if '%choice_fw%'=='2' GOTO UPDATE
if '%choice_fw%'=='3' GOTO BACKUP if '%choice_fw%'=='3' GOTO BACKUP
if '%choice_fw%'=='4' GOTO FLIPPERBM if '%choice_fw%'=='4' GOTO FLIPPERBM
echo Please choose 1, or 2! echo Please choose 1, or 2!
ping 127.0.0.1 -n 5 ping 127.0.0.1 -n 5
cls cls
GOTO CHOOSE_FW GOTO CHOOSE_FW
:MARAUDER :MARAUDER
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
set last_firmware= 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, preparing write... echo Firmware Erased, preparing write...
ping 127.0.0.1 -n 5 > NUL ping 127.0.0.1 -n 5 > 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
:UPDATE :UPDATE
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Please download flipper BIN file to Marauder folder and rerun Flasher. echo Please download flipper BIN file to Marauder folder and rerun Flasher.
echo. echo.
echo Press any key to open Marauder download location in default browser... echo Press any key to open Marauder download location in default browser...
pause>NUL pause>NUL
start https://github.com/justcallmekoko/ESP32Marauder/releases/latest start https://github.com/justcallmekoko/ESP32Marauder/releases/latest
GOTO ERREXIT GOTO ERREXIT
:BACKUP :BACKUP
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin" echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin"
esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin
GOTO DONE GOTO DONE
:FLIPPERBM :FLIPPERBM
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
IF EXIST FlipperBlackmagic\nvs.bin ( IF EXIST FlipperBlackmagic\nvs.bin (
echo Flashing Flipper Blackmagic with WiFi Settings restore echo Flashing Flipper Blackmagic with WiFi Settings restore
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 0x9000 FlipperBlackmagic\nvs.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 0x9000 FlipperBlackmagic\nvs.bin 0x10000 FlipperBlackmagic\blackmagic.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, preparing write... echo Firmware Erased, preparing write...
ping 127.0.0.1 -n 5 > NUL ping 127.0.0.1 -n 5 > 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
:DONE :DONE
echo. echo.
echo ----------------------------------------------------------------------------------------------- echo -----------------------------------------------------------------------------------------------
echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero. echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero.
echo. echo.
echo ========================================================================== echo ==========================================================================
echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try. echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try.
echo ========================================================================== echo ==========================================================================
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
:ESPERROR :ESPERROR
echo esptool.exe is missing. Please download and extract the full package. echo esptool.exe is missing. Please download and extract the full package.
GOTO ERREXIT GOTO ERREXIT
:ERREXIT :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

View File

@ -1,132 +1,132 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
:: Basic error checks :: Basic error checks
IF NOT EXIST esptool.exe GOTO ESPERROR IF NOT EXIST esptool.exe GOTO ESPERROR
set BR=921600 set BR=921600
for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A" for /f "tokens=1" %%A in ('wmic path Win32_SerialPort get DeviceID^,PNPDeviceID^|findstr /i VID_303A') do set "_com=%%A"
if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW if not [!_com!]==[] echo Attempting to use serial port: !_com! & GOTO CHOOSE_FW
echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.) echo ESP32S2 DevBoard not found (make sure to hold BOOT when plugging in USB.)
echo Otherwise please check or reconnect the USB connection with the DevBoard. echo Otherwise please check or reconnect the USB connection with the DevBoard.
GOTO ERREXIT GOTO ERREXIT
:CHOOSE_FW :CHOOSE_FW
echo. echo.
echo Which action would you like to perform? echo Which action would you like to perform?
echo. echo.
echo 1. Flash Marauder echo 1. Flash Marauder
echo 2. Update Marauder (v0.9.14 included) echo 2. Update Marauder (v0.9.14 included)
echo 3. Save Flipper Blackmagic WiFi settings echo 3. Save Flipper Blackmagic WiFi settings
echo 4. Flash Flipper Blackmagic echo 4. Flash Flipper Blackmagic
echo. echo.
set choice_fw= set choice_fw=
set /p choice_fw= Type choice and hit enter: set /p choice_fw= Type choice and hit enter:
if '%choice_fw%'=='1' GOTO MARAUDER if '%choice_fw%'=='1' GOTO MARAUDER
if '%choice_fw%'=='2' GOTO UPDATE if '%choice_fw%'=='2' GOTO UPDATE
if '%choice_fw%'=='3' GOTO BACKUP if '%choice_fw%'=='3' GOTO BACKUP
if '%choice_fw%'=='4' GOTO FLIPPERBM if '%choice_fw%'=='4' GOTO FLIPPERBM
echo Please choose 1, or 2! echo Please choose 1, or 2!
ping 127.0.0.1 -n 5 ping 127.0.0.1 -n 5
cls cls
GOTO CHOOSE_FW GOTO CHOOSE_FW
:MARAUDER :MARAUDER
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
set last_firmware= 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, preparing write... echo Firmware Erased, preparing write...
ping 127.0.0.1 -n 5 > NUL ping 127.0.0.1 -n 5 > 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
:UPDATE :UPDATE
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Please download flipper BIN file to Marauder folder and rerun Flasher. echo Please download flipper BIN file to Marauder folder and rerun Flasher.
echo. echo.
echo Press any key to open Marauder download location in default browser... echo Press any key to open Marauder download location in default browser...
pause>NUL pause>NUL
start https://github.com/justcallmekoko/ESP32Marauder/releases/latest start https://github.com/justcallmekoko/ESP32Marauder/releases/latest
GOTO ERREXIT GOTO ERREXIT
:BACKUP :BACKUP
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin" echo Saving Flipper Blackmagic WiFi Settings to "FlipperBlackmagic\nvs.bin"
esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin esptool.exe -p !_com! -b %BR% -c esp32s2 -a no_reset read_flash 0x9000 0x6000 FlipperBlackmagic\nvs.bin
GOTO DONE GOTO DONE
:FLIPPERBM :FLIPPERBM
cls cls
echo. echo.
echo ######################################### echo #########################################
echo # Marauder Flasher Script # echo # Marauder Flasher Script #
echo # By Frog, tweaked by UberGuidoZ # echo # By Frog, tweaked by UberGuidoZ #
echo # and by ImprovingRigmarole # echo # and by ImprovingRigmarole #
echo ######################################### echo #########################################
echo. echo.
IF EXIST FlipperBlackmagic\nvs.bin ( IF EXIST FlipperBlackmagic\nvs.bin (
echo Flashing Flipper Blackmagic with WiFi Settings restore echo Flashing Flipper Blackmagic with WiFi Settings restore
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 0x9000 FlipperBlackmagic\nvs.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 0x9000 FlipperBlackmagic\nvs.bin 0x10000 FlipperBlackmagic\blackmagic.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, preparing write... echo Firmware Erased, preparing write...
ping 127.0.0.1 -n 5 > NUL ping 127.0.0.1 -n 5 > 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
:DONE :DONE
echo. echo.
echo ----------------------------------------------------------------------------------------------- echo -----------------------------------------------------------------------------------------------
echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero. echo Process has completed! Please disconnect your Wifi Devboard and connect it to your Flipper Zero.
echo. echo.
echo ========================================================================== echo ==========================================================================
echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try. echo ERRORS ABOVE MAY BE NORMAL - Please ignore them for now and give it a try.
echo ========================================================================== echo ==========================================================================
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
:ESPERROR :ESPERROR
echo esptool.exe is missing. Please download and extract the full package. echo esptool.exe is missing. Please download and extract the full package.
GOTO ERREXIT GOTO ERREXIT
:ERREXIT :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