nordic DFU 升级功能资料整理

Nordic 蓝牙通讯DFU应用资料整理,资料来源nodic官方文档

 

 

 

 

 

整个flash的分布

 

 

Bootloader 移植来只SDK的例程DFU /secure_bootloader

 

 

在APP 部分添加 DFU Servics

 

 

DFU升级方法有三种

1)在nRF connect  Bluetooth Low Energy pc端软件有升级功能

 

下载地址https://github.com/NordicSemiconductor/pc-nrfconnect-core/releases

2)在Android 手机端

 

下载地址https://github.com/NordicSemiconductor/Android-nRF-Connect/releases 没有源代码

 

  1. 用nrfutil.exe 升级

 nrfutil dfu ble -ic NRF52 -pkg lock_dfu_app_package.zip -p COM35 -n "Nordic_Buttonless"

 Lock_dfu_app_package.zip  文件名

 COM35 是dongle 的串口名

 Nordic_Buttonless  是升级设备的广播名

 

 Nrfutil.exe 下载地址和帮助内容

https://github.com/NordicSemiconductor/pc-nrfutil

 

 

使用nrfutil 帮助文件

https://infocenter.nordicsemi.com/index.jsp

 

1)生成DFU ,bootloaeder  加密的keys 文件

 

2)生成DFU packages

 

3)通过蓝牙升级

 

  1. 生成bootloader的settings 文件

 

 

几个hex 文件合并成一个hex文件

生产时直接烧录

 

SoftDevice.hex + app.hex + bootloader.hex+ bootloader settings = all.hex

 

nrfutil settings generate --family NRF52840 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex

mergehex -m bootloader.hex app.hex settings.hex -o app_bl_settings.hex

mergehex -m softdevice.hex app_bl_settings.hex -o all.hex

 

Nrfuitl settings generate 计算app.hex 产生settings 数据是bootloader需要的。

 

发布了5 篇原创文章 · 获赞 2 · 访问量 5855

猜你喜欢

转载自blog.csdn.net/yytyu2017/article/details/103053342
DFU
今日推荐