You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
980 B

2 years ago
  1. set UV_PRO_PATH=dynamic_electrocardiograph_ble_server\ble_app_uart_c_pca10100_s122.uvprojx
  2. set BUILD_RESULT=dynamic_electrocardiograph_ble_server\_build\dynamic_electrocardiograph_ble_server.hex
  3. call scripter\keil_build.bat ^
  4. %UV_PRO_PATH% ^
  5. %BUILD_RESULT%
  6. if not exist %BUILD_RESULT% (
  7. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  8. echo E ���� %UV_PRO_PATH% ʧ��
  9. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  10. exit /b 1
  11. )
  12. @REM ����
  13. mergehex --merge ^
  14. res/s140_nrf52_7.2.0_softdevice.hex ^
  15. %BUILD_RESULT% ^
  16. --output output/dynamic_electrocardiograph_ble_server.hex
  17. if %errorlevel% neq 0 (
  18. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  19. echo E ����ʧ��
  20. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  21. exit /b 1
  22. )
  23. @REM ��¼
  24. nrfjprog --eraseall -f NRF52 %ȫ����%
  25. nrfjprog --program output/dynamic_electrocardiograph_ble_server.hex --verify -f NRF52 %��¼%