vos/ambiq-hal-sys/ambiq-sparkfun-sdk/tools/apollo3_scripts/verify_info0.bat

18 lines
271 B
Batchfile
Raw Normal View History

2022-10-24 06:45:43 +00:00
@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