烧录.bat 696 B

1234567891011121314151617
  1. cd ..
  2. cd ..
  3. cd ..
  4. nrfjprog -f nrf52 --erasepage 0x0-0x80000
  5. nrfjprog --family nRF52 --eraseall
  6. nrfutil settings generate --family NRF52 --application ./pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 ./dfu_readme/app_setting_cp.hex
  7. mergehex --merge ./dfu_readme/app_setting_cp.hex ./dfu_readme/sd_boot_cp.hex --output ./dfu_readme/setting_sd_boot_cp.hex
  8. mergehex --merge ./pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex ./dfu_readme/app_setting_cp.hex ./dfu_readme/sd_boot_cp.hex --output ./dfu_readme/app_setting_sd_boot_cp.hex
  9. nrfjprog --program ./dfu_readme/app_setting_sd_boot_cp.hex -f nrf52 --reset