diff --git a/scripter/build_app.bat b/scripter/build_app.bat index d2472f5..47b8206 100644 --- a/scripter/build_app.bat +++ b/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 diff --git a/scripter/flash_app.bat b/scripter/flash_app.bat new file mode 100644 index 0000000..5553798 --- /dev/null +++ b/scripter/flash_app.bat @@ -0,0 +1 @@ +call scripter\keil_flash.bat app\app.uvprojx \ No newline at end of file diff --git a/scripter/keil_flash.bat b/scripter/keil_flash.bat new file mode 100644 index 0000000..f93c52f --- /dev/null +++ b/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