[docs] add nrfx docs

This commit is contained in:
chenyingchun0312 2022-06-09 11:55:11 +08:00 committed by guo
parent 138925be08
commit 7824c54b1b
14 changed files with 61 additions and 0 deletions

View File

@ -126,6 +126,67 @@ nrf5x
## 使用RTT-STUDIO开发
RTT-STUDIO V2.2.0及以上版本支持直接导入BSP创建工程而可以不用再依赖于基于开发版来创建工程了这样我们可以一直体验最新的代码了是不是很香
![image-20220609112426518](docs/images/image-20220609112426518.png)
### 导入nRF5x BSP到RTT-STUDIO中
1. 右击资源管理窗口,鼠标右击导入
![image-20220609112322574](docs/images/image-20220609112322574.png)
2. 选择导入BSP到工作空间点击下一步
![image-20220609112938212](docs/images/image-20220609112938212.png)
3. 选择BSP根目录以及填写工程名称点击完成
![image-20220609113142111](docs/images/image-20220609113142111.png)
![image-20220609113203519](docs/images/image-20220609113203519.png)
4. 通过观察控制台LOG我们发现其实当执行该操作时背后的操作逻辑是进入指定的BSP目录执行下面的命令
```
先进入指定BSP目录然后执行下面的额命令
scons --dist-ide --project-path=D:\RT-ThreadStudio\workspace/nrf52832_test --project-name=nrf52832_test
```
![image-20220609113439251](docs/images/image-20220609113439251.png)
5. 直接编译工程,发现已经编译成功
![image-20220609113611068](docs/images/image-20220609113611068.png)
6. 下载程序到开发板点击下载按钮发现有如下提示我目前使用的studio版本是版本: 2.2.3,后续该问题应该可以修复掉)
![image-20220609113726186](docs/images/image-20220609113726186.png)
经过请教施工,解决了上面的问题,解决步骤如下
6.1 打开导入后的工程目录,打开.settings文件夹中的projcfg.ini文件
![image-20220609114026961](docs/images/image-20220609114026961.png)
6.2 添加如下内容`J-Link`
![image-20220609114121378](docs/images/image-20220609114121378.png)
6.3 打开调试配置界面,填写设备名,设备名具体写什么,可以参考这里[链接](https://www.segger.com/supported-devices/jlink/)
![image-20220609114333827](docs/images/image-20220609114333827.png)
![image-20220609114533743](docs/images/image-20220609114533743.png)
![image-20220609114554402](docs/images/image-20220609114554402.png)
## FAQ:
#### 1. 如果烧入的时候出现如下状况:

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB