From 6401d31a9e0ded6f1cfc0a95f14fec757352963d Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 9 Feb 2024 14:34:59 +0800 Subject: [PATCH] update build bat --- scripter/build_app.bat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripter/build_app.bat b/scripter/build_app.bat index a5a5799..45bf898 100644 --- a/scripter/build_app.bat +++ b/scripter/build_app.bat @@ -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 ---------------------------------------------------------------