部分烧录 - 副本.bat 711 B

12345678910111213141516171819202122232425262728293031
  1. cd ..
  2. set BAT_HOME=%cd%
  3. nrfutil settings generate --family NRF52 --application "%BAT_HOME%"/pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 "%BAT_HOME%"/dfu_readme/app_setting_cp.hex
  4. cd C:/Program Files (x86)/SEGGER/JLink/Scorp
  5. c:
  6. JLink.exe
  7. si 1
  8. speed 4000
  9. device nrf52832_xxAA
  10. erase 0x26000 0x74FFF
  11. erase 0x7E000 0x7EFFF
  12. loadfile "%BAT_HOME%"/dfu_readme/s132_nrf52_7.0.1_softdevice.hex 0x0
  13. loadfile "%BAT_HOME%"/dfu_readme/central_and_peripheral_bootloader.hex 0x78000
  14. loadfile "%BAT_HOME%"/dfu_readme/app_setting_cp.hex 0x7E000
  15. loadfile "%BAT_HOME%"/pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex 0x26000
  16. pause