zoukankan      html  css  js  c++  java
  • nrf52810的升级命令

    52810的升级命令
    nrfutil settings generate --family NRF52 --application app10.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 settings10.hex
    mergehex.exe --merge bootloader10.hex settings10.hex --output b1_temp10.hex
    mergehex.exe --merge b1_temp10.hex app10.hex s112_nrf52_6.1.1_softdevice.hex --output whole10.hex

    nrfjprog --eraseall -f NRF52
    nrfjprog --program whole.hex --verify -f NRF52
    nrfjprog --reset -f NRF52

    nrfutil pkg generate --application app_new.hex --application-version 2 --hw-version 52 --sd-req 0xB8 --key-file priv.pem SDK153_app_s112.zip

    nrfutil pkg generate --help 查看ID

    52832的升级命令
    nrfutil settings generate --family NRF52 --application app32.hex --application-version 2 --bootloader-version 1 --bl-settings-version 2 settings.hex
    mergehex.exe --merge bootloader32.hex settings.hex --output b1_temp32.hex
    mergehex.exe --merge b1_temp32.hex s132_nrf52_6.1.1_softdevice.hex --output whole32.hex
    //mergehex.exe --merge whole52832.hex app32.hex --output whole52832u.hex
    nrfutil pkg generate --application app32new.hex --application-version 3 --hw-version 52 --sd-req 0xB7 --key-file priv.pem HY_test_DFU.zip

    下面是客户给的制作DFU的方式,其实是大同小异,总体一样的
    1. generate private key
    nrfutil keys generate priv.pem

    2. generate dfu_public_key.c
    nrfutil keys display --key pk --format code priv.pem --out_file dfu_public_key.c

    3. put dfu_public_key.c to the folder nRF5_SDK_15.3.0_59ac345examplesdfu

    4. compile bootloader

    5. prepare bootloader setting page (the application version and the CRC, overwrite the default bootloader setting )
    nrfutil settings generate --family NRF52810 --application app10.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 bootloader_setting.hex

    6. mergehex softdevice, bootloader, bootloader setting page.
    mergehex -m s112_nrf52_6.1.1_softdevice.hex bootloader_setting.hex bootloader10.hex -o sd_set_boot.hex

    7. merge mergehex softdevice, bootloader, bootloader setting page and app to whole
    mergehex -m sd_set_boot.hex app10.hex -o bat_whole.hex

    8. erase device and flash bat_whole.hex to device( including softdevice, bootloader, bootloader setting page and app )
    nrfjprog.exe --eraseall -f NRF52nrfjprog.exe --program bat_whole.hex --verify -f NRF52

    9. generate dfu package
    nrfutil.exe pkg generate --application bat_app.hex --application-version 1 --hw-version 52 --sd-req 0xB8 --key-file priv.pem bat_app_dfu_pge.zip

    10.connect device with PC or mobile app------do DFU for the detail https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-
    bootloader

    经验再多也只能看作加法,而经过理论升华的经验,就可以看作乘法!
  • 相关阅读:
    shp2pgsql向postgresql导入shape数据
    node.js的Promise库-bluebird示例
    iOS中点击事件失效的解决办法
    [PHP] 获取IP 和JS获取IP和地址
    [Bootstrap ] 模态框(Modal)插件
    [html][javascript] 关于SVG环形进度条
    [javascript] js实现小数的算术运算方法
    [GO] linux 下安装GO
    小知识点:session的存放位置
    [linux] linux的top命令参数详解
  • 原文地址:https://www.cnblogs.com/TorryLong/p/12739891.html
Copyright © 2011-2022 走看看