1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-24 14:50:10 +01:00
bemanitools/dist/iidx/ezusb-boot.bat
2019-09-27 22:36:50 +02:00

28 lines
429 B
Batchfile

@echo off
if "%2"=="" goto USAGE
echo Flashing ezusb firmware (%1)...
ezusb-tool.exe flash %1
if %ERRORLEVEL% neq 0 (
exit 1
)
:: Wait a moment for the ezusb to re-enumerate properly
ping 127.0.0.1 -n 8 > nul
echo Writing FPGA data (%2)...
ezusb-iidx-fpga-flash.exe v1 %2
if %ERRORLEVEL% neq 0 (
exit 1
)
ping 127.0.0.1 -n 3 > nul
goto END
:USAGE
echo Usage: ezusb-boot.bat ^<ezusb_v1.bin^> ^<fpga_v1.bin^>
:END