vos/ambiq-hal-sys/ambiq-sparkfun-sdk/tools/apollo3_scripts/verify_info0.bat
2022-10-23 23:45:43 -07:00

18 lines
271 B
Batchfile

@echo off
if [%1]==[] goto usage
jlink -device %1 -CommanderScript jlink-read-info0.txt
diff info0.bin info0_dump.bin
@ECHO OFF
if ERRORLEVEL 1 (
echo "INFO0 Invalid"
) else (
echo "INFO0 Valid"
)
pause
goto :eof
:usage
@echo Usage: %0 ^<Chip Part#^>
exit /B 1