[change]修正stm32f401-st-nucleo上手指南 (#7227)

* [add]修正stm32f401-st-nucleo英文上手指南

* [add]添加STM32中文工程使用指南

* 规范英文图片名称

* 修改图片路径

* Update STM32系列如何创建新项目.md
This commit is contained in:
Yaochenger 2023-04-14 00:29:23 +08:00 committed by GitHub
parent ca02945756
commit 83c0565e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 138 additions and 46 deletions

View File

@ -0,0 +1,94 @@
## 如何创建新项目
***info:***
本说明以stm32f401-st-nucleo为例
:bulb:从链接下载最新的[RT Thread代码](https://www.rt-thread.io/studio.html)并按照说明将其安装到您的windows机器上。
## 1创建新工程
### 1.1 导入BSP
![](../stm32f401-st-nucleo/figures_en/Import_bsp.png)
### 1.2选择 RT-Thread Bsp Project into Workspace.
![](../stm32f401-st-nucleo/figures_en/Workspace.png)
### 1.3 从BSP导入工程
![](../stm32f401-st-nucleo/figures_en/Import_prj.png)
### 1.4 选择BSP路径 rt-threadx\bsp\stm32\stm32f401-st-nucleo
![](../stm32f401-st-nucleo/figures_en/Folder.png)
### 1.5 填写信息选择ST-LINK作为调试器单击“完成”按钮。工作区将有一个新创建的项目
![](../stm32f401-st-nucleo/figures_en/Info.png)
![](../stm32f401-st-nucleo/figures_en/Import.png)
![](../stm32f401-st-nucleo/figures_en/Project.png)
## 2 工具链
### 2.1 选择最新的工具链版本以解决警告。
![](../stm32f401-st-nucleo/figures_en/BuildSetting.png)
![](../stm32f401-st-nucleo/figures_en/GUN_Tools.png)
### 2.2 如果没有最新的工具链版本请单击SDK管理器下载最新版本.
![](../stm32f401-st-nucleo/figures_en/SDK.png)
> 从“RT线程SDK管理器”窗口中选择最新版本然后单击“安装软件包”按钮。安装完成后再次单击“退出SDK管理器”按钮。
![](../stm32f401-st-nucleo/figures_en/SDK_ver.png)
> Then select the latest version from the Open Build Settings Dialog.
## 3 RT-Thread Setting
### 3.1 然后从“打开生成设置”对话框中选择最新版本。
![](../stm32f401-st-nucleo/figures_en/config.png)
![](../stm32f401-st-nucleo/figures_en/softpkgs.png)
![](../stm32f401-st-nucleo/figures_en/select.png)
### 3.2 配置完成后,单击保存以更新最新配置。
![](../stm32f401-st-nucleo/figures_en/save_select.png)
![](../stm32f401-st-nucleo/figures_en/saveing.png)
## 4 Compilation
### 4.1为了使项目复杂化,请选择项目并确保其处于[Active - Debug ] 状态。
![](../stm32f401-st-nucleo/figures_en/select_prj.png)
### 4.2 单击菜单栏上的编译图标以编译项目。
![](../stm32f401-st-nucleo/figures_en/build.png)
![](../stm32f401-st-nucleo/figures_en/build_finish.png)
## 5 终端
连接开发板请单击菜单ba上的终端图标然后选择正确的串行端口。![](../stm32f401-st-nucleo/figures_en/terminal.png)
## 6 附加信息
如果您需要其他信息,请访问:
https://www.rt-thread.io/document/site/programming-manual/interrupt/interrupt/
##
###### 作者:
###### Stanley Lwin [04 / 11 / 2023]

View File

@ -1,97 +1,95 @@
# [STM32F401] How to create a new project
## [STM32F401] How to create a new project
:::info
***info:***
:bulb: Download the latest RT-Thread studio from link -
https://www.rt-thread.io/studio.html
and follow the instructions to install it on your windows machine.
:::
### Create a new project
## 1 Create a new project
- Go to File -> Import.
### 1.1 Go to File -> Import.
![](https://i.imgur.com/HjMyZCg.png)
![](./figures_en/Import_bsp.png)
### 1.2 Select RT-Thread Bsp Project into Workspace.
- Select RT-Thread Bsp Project into Workspace.
![](./figures_en/Workspace.png)
![](https://i.imgur.com/jcwFf24.png)
### 1.3 Import Projects from BSP.
- Import Projects from BSP.
![](./figures_en/Import_prj.png)
![](https://i.imgur.com/XZZOTbT.png)
### 1.4 Browse Bsp Location to rt-threadx\bsp\stm32\stm32f401-st-nucleo, then click Select Folder.
- Browse Bsp Location to rt-threadx\bsp\stm32\stm32f401-st-nucleo, then click Select Folder.
![](./figures_en/Folder.png)
![](https://i.imgur.com/osnThIA.png)
### 1.5 Fill up the rest of the information and select ST-LINK for debugger. Then, click finish button. There will be a newly created project at the workspace.
- Fill up the rest of the information and select ST-LINK for debugger. Then, click finish button. There will be a newly created project at the workspace.
![](./figures_en/Info.png)
![](https://i.imgur.com/1sLBJ88.png)
![](./figures_en/Import.png)
![](https://i.imgur.com/0Z4ahmr.png)
![](./figures_en/Project.png)
![](https://i.imgur.com/o3kdLrx.png)
## 2 Tool Chain
### Tool Chain
### 2.1 Select the latest tool chain version to resolve the warning.
- Select the latest tool chain version to resolve the warning.
![](./figures_en/BuildSetting.png)
![](https://i.imgur.com/aqCQRRX.png)
![](./figures_en/GUN_Tools.png)
![](https://i.imgur.com/CJ38q4n.png)
### 2.2 If there is no latest tool chain version, click SDK manager to download the latest version.
- **If** there is no latest tool chain version, click SDK manager to download the latest version.
![](./figures_en/SDK.png)
![](https://i.imgur.com/rG3DJM6.png)
> Select the latest version from the RT-Thread SDK Manager window and click install packages button. After installation, click Exit SDK Manger button again.
> - Select the latest version from the RT-Thread SDK Manager window and click install packages button. After installation, click Exit SDK Manger button again.
![](./figures_en/SDK_ver.png)
![](https://i.imgur.com/BNvMNzb.png)
> Then select the latest version from the Open Build Settings Dialog.
> - Then select the latest version from the Open Build Settings Dialog.
## 3 RT-Thread Setting
### RT-Thread Setting
### 3.1 In order to configure kernel and to enable add-on software packages, click RT-Thread Settings. Then, click detail button.
- In order to configure kernel and to enable add-on software packages, click RT-Thread Settings. Then, click detail button.
![](./figures_en/config.png)
![](https://i.imgur.com/OOJq4U8.png)
![](./figures_en/softpkgs.png)
![](https://i.imgur.com/jctYIJA.png)
![](./figures_en/select.png)
![](https://i.imgur.com/bonMpvv.png)
### 3.2 After configuration, click save to update the latest configuration.
- After configuration, click save to update the latest configuration.
![](./figures_en/save_select.png)
![](https://i.imgur.com/yubp4yc.png)
![](./figures_en/saveing.png)
![](https://i.imgur.com/Bz4BwWm.png)
## 4 Compilation
### Compilation
### 4.1 In order to complie the project, select the project and ensure that it is [Active - Debug ] state.
- In order to complie the project, select the project and ensure that it is [Active - Debug ] state.
![](./figures_en/select_prj.png)
![](https://i.imgur.com/YM6wXdr.png)
### 4.2 Click compilation icon at the menu bar to compile the project.
- Click compilation icon at the menu bar to compile the project.
![](./figures_en/build.png)
![](https://i.imgur.com/FVTw9CD.png)
![](./figures_en/build_finish.png)
![](https://i.imgur.com/M6OMuLM.png)
## 5 Terminal
### Terminal
To access the development board, click terminal icon at the menu ba and select the correct serial port.
- To access the development board, click terminal icon at the menu ba and select the correct serial port.
![](./figures_en/terminal.png)
![](https://i.imgur.com/HFzLRi9.png)
## 6 Additional Info
### Additional Info
- If you need addtional information, visit to
If you need addtional information, visit to
https://www.rt-thread.io/document/site/programming-manual/interrupt/interrupt/
##
###### Author
###### Stanley Lwin [04 / 11 / 2023]

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB