|
|
@ -43,6 +43,9 @@ if %errorlevel% neq 0 ( |
|
|
|
exit /b 1 |
|
|
|
) |
|
|
|
|
|
|
|
copy /y output\app.zip output\three_lead_ecg.zip |
|
|
|
copy /y output\app_whole.hex output\three_lead_ecg.hex |
|
|
|
|
|
|
|
|
|
|
|
@REM 打包整体镜像 |
|
|
|
mergehex --merge res/bootloader.hex output/settings.hex --output output/bl_temp.hex |
|
|
@ -51,6 +54,10 @@ del output\bl_temp.hex |
|
|
|
del output\settings.hex |
|
|
|
del output\app.hex |
|
|
|
|
|
|
|
echo "Start flashing..." |
|
|
|
|
|
|
|
call scripter\unlock.bat |
|
|
|
|
|
|
|
|
|
|
|
@REM 烧录整体镜像 |
|
|
|
nrfjprog --eraseall -f NRF52 %全擦除% |
|
|
@ -75,6 +82,7 @@ if %errorlevel% neq 0 ( |
|
|
|
exit /b 1 |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
echo --------------------------------------------------------------- |
|
|
|
echo - done |
|
|
|
echo --------------------------------------------------------------- |
|
|
|