3、From MED Setup DFU Security(只需要构建一次)
<通过间接调用dfu_detu .py脚本,MDE可以生成RSA 2048私钥和公钥和其他源文件常量,DFU文件用于签名验证。>
Navigate from the MDE GUI to: Tools / Setup DFU security.
4、选择要找到或创建DFU安全文件的位置(选择默认的dfu目录就可以):
5、选择“Replace” (第一次是不会弹出该对话框)
6、Build the DFU image
<生成一个.bin文件,也就是我们需要升级的bin文件。 生成之前需要更改好我们需要修改的部分>
Navigate to: Tools / Build DFU and create a DFU file:
15、Select the Upgrade service when Application ready is displayed.
16、选择升级的bin文件。
17、Select the Upgrade configuration. Choose the recommended configuration for Optimized Upgrade over BLE and tap the START UPGRADE button to start the upgrade process.
18、After initializing the upgrade process, the file is uploaded onto the device.