Browse Source

update

master
zhaohe 1 year ago
parent
commit
146ae900cb
  1. 10
      scripter/build_app.bat
  2. 1
      scripter/flash_app.bat
  3. 6
      scripter/keil_flash.bat

10
scripter/build_app.bat

@ -14,11 +14,13 @@ if not exist app\_build\app.hex (
exit /b 1
)
call scripter\keil_flash.bat app\app.uvprojx
@REM ´ò°ü
mergehex --merge ^
res/s140_nrf52_7.2.0_softdevice.hex ^
app\_build\app.hex ^
--output output/app_whole.hex
@REM mergehex -f hex --merge ^
@REM res/s140_nrf52_7.2.0_softdevice.hex ^
@REM app\_build\app.hex ^
@REM --output output/app_whole.hex
@REM if %errorlevel% neq 0 (
@REM echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

1
scripter/flash_app.bat

@ -0,0 +1 @@
call scripter\keil_flash.bat app\app.uvprojx

6
scripter/keil_flash.bat

@ -0,0 +1,6 @@
@echo off
set UV=C:\Keil_v5\UV4\UV4.exe
set UV_PRO_PATH=%1
%UV% -j0 -sg -f %UV_PRO_PATH% -o %cd%\build_log.txt
type build_log.txt
Loading…
Cancel
Save