一、通过hex生成dfu升级所需的zip文件
nrfutil pkg generate --application nrf52832_xxaaV3.hex --application-version 3 --hw-version 52 --sd-req 0x8c --key-file priv.pem nrf52832_xxaaV3.zip
二、生成setting文件
nrfutil settings generate --family NRF52 --application nrf52832_xxaaV3.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settingV3.hex
三、合并hex
mergehex --merge softdevice.hex nrf52832_xxaaV3.hex bootload.hex --output o3.hex
四、继续合并hex
mergehex --merge o3.hex settingV3.hex --output mahuaV3.hex
觉得好,就一键三连呗(点赞+收藏+关注)