|
|
@ -3,6 +3,8 @@ |
|
|
|
@REM 编译app |
|
|
|
call scripter\keil_build.bat app\app.uvprojx app\_build\app.hex |
|
|
|
|
|
|
|
del output\* |
|
|
|
|
|
|
|
@REM 检查是否编译成功 |
|
|
|
if not exist app\_build\app.hex ( |
|
|
|
echo 编译app失败 |
|
|
@ -43,9 +45,6 @@ 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 |
|
|
@ -54,6 +53,9 @@ del output\bl_temp.hex |
|
|
|
del output\settings.hex |
|
|
|
del output\app.hex |
|
|
|
|
|
|
|
copy /y output\app.zip output\three_lead_ecg.zip |
|
|
|
copy /y output\app_whole.hex output\three_lead_ecg.hex |
|
|
|
|
|
|
|
echo "Start flashing..." |
|
|
|
|
|
|
|
call scripter\unlock.bat |
|
|
|