### 编译环境 keil 5.3 ### #### 准备 1. 下载nordic SDK ,nRF5_SDK_17.0.0_9d13099 [链接](http://git.ouj.com/ouj/shoes/src/master/smart_shoes/nRF5_SDK_17.0.0_9d13099) 2. 下载并安装nrfjprom工具 [链接](https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-15-2/nRF-Command-Line-Tools-10.15.2-x86.exe) ### 编译和烧录 在keil 中打开工程,根据实际需要选择PCB板和鞋子的功能,打开Application目录下的usr_config.h #### 选择使用的板子 选择PCB板>>>> PCB_VERSION - PCB板选择 >>>> PCB2.1 #### 烧录快捷键 ##### 1. 添加OTA down Tools >>>> Customize Tools Menu 添加OTA down ![image] (http://git.ouj.com/ouj/shoe_mcu/src/master/Picture/Down.png) ##### 2. 设置快捷键 Edit >>> Configuration >>>>> Shortcut Keys ![image] (http://git.ouj.com/ouj/shoe_mcu/src/master/Picture/Hotkey.png) #### 设置DFU功能 勾选 BleNameHoldOn_ENANBLE 公共 >>> 系统设置 >>>> BleNameHoldOn_ENANBLE ![image] (http://git.ouj.com/ouj/shoe_mcu/src/master/Picture/config.png)