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.

63 lines
1.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. @echo off
  2. @REM ����app
  3. call scripter\keil_build.bat app\app.uvprojx app\_build\app.hex
  4. del output\app_whole.hex
  5. del output\app.zip
  6. del output\one_lead_ecg.zip
  7. del output\one_lead_ecg.hex
  8. @REM �����Ƿ������ɹ�
  9. if not exist app\_build\app.hex (
  10. echo ����appʧ��
  11. exit /b 1
  12. )
  13. @REM ����app.hex �� output\
  14. copy /y app\_build\app.hex output\app.hex
  15. @REM ����setting page
  16. echo ---------------------------------------------------------------
  17. echo - generate settings.hex
  18. echo ---------------------------------------------------------------
  19. scripter\nrfutil settings generate ^
  20. --family NRF52 ^
  21. --application output/app.hex ^
  22. --application-version 1 ^
  23. --bootloader-version 1 ^
  24. --bl-settings-version 2 output/settings.hex
  25. echo ---------------------------------------------------------------
  26. echo - done
  27. echo ---------------------------------------------------------------
  28. @REM ����Զ����������
  29. scripter\nrfutil pkg generate ^
  30. --application output\app.hex ^
  31. --application-version 1 ^
  32. --hw-version 52 ^
  33. --sd-req 0x0100 ^
  34. --key-file pemkey\priv.pem output\app.zip
  35. if %errorlevel% neq 0 (
  36. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  37. echo E ����������ʧ�� E
  38. echo EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  39. exit /b 1
  40. )
  41. @REM �������徵��
  42. mergehex --merge res/bootloader.hex output/settings.hex --output output/bl_temp.hex
  43. mergehex --merge output/bl_temp.hex output/app.hex res/s140_nrf52_7.2.0_softdevice.hex --output output/app_whole.hex
  44. del output\bl_temp.hex
  45. del output\settings.hex
  46. del output\app.hex
  47. copy /y output\app.zip output\one_lead_ecg.zip
  48. copy /y output\app_whole.hex output\one_lead_ecg.hex