[change]修正stm32f401-st-nucleo上手指南 (#7227)
* [add]修正stm32f401-st-nucleo英文上手指南 * [add]添加STM32中文工程使用指南 * 规范英文图片名称 * 修改图片路径 * Update STM32系列如何创建新项目.md
94
bsp/stm32/docs/STM32系列如何创建新项目.md
Normal file
@ -0,0 +1,94 @@
|
||||
## 如何创建新项目
|
||||
|
||||
***info:***
|
||||
|
||||
本说明以stm32f401-st-nucleo为例:
|
||||
|
||||
:bulb:从链接下载最新的[RT Thread代码](https://www.rt-thread.io/studio.html),并按照说明将其安装到您的windows机器上。
|
||||
|
||||
## 1创建新工程
|
||||
|
||||
### 1.1 导入BSP
|
||||
|
||||

|
||||
|
||||
### 1.2选择 RT-Thread Bsp Project into Workspace.
|
||||
|
||||

|
||||
|
||||
### 1.3 从BSP导入工程
|
||||
|
||||

|
||||
|
||||
### 1.4 选择BSP路径 rt-threadx\bsp\stm32\stm32f401-st-nucleo
|
||||
|
||||

|
||||
|
||||
### 1.5 填写信息,选择ST-LINK作为调试器,单击“完成”按钮。工作区将有一个新创建的项目
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 2 工具链
|
||||
|
||||
### 2.1 选择最新的工具链版本以解决警告。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### 2.2 如果没有最新的工具链版本,请单击SDK管理器下载最新版本.
|
||||
|
||||

|
||||
|
||||
> 从“RT线程SDK管理器”窗口中选择最新版本,然后单击“安装软件包”按钮。安装完成后,再次单击“退出SDK管理器”按钮。
|
||||
|
||||

|
||||
|
||||
> Then select the latest version from the Open Build Settings Dialog.
|
||||
|
||||
## 3 RT-Thread Setting
|
||||
|
||||
### 3.1 然后从“打开生成设置”对话框中选择最新版本。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### 3.2 配置完成后,单击保存以更新最新配置。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 4 Compilation
|
||||
|
||||
### 4.1为了使项目复杂化,请选择项目并确保其处于[Active - Debug ] 状态。
|
||||
|
||||

|
||||
|
||||
### 4.2 单击菜单栏上的编译图标以编译项目。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 5 终端
|
||||
|
||||
连接开发板,请单击菜单ba上的终端图标,然后选择正确的串行端口。
|
||||
|
||||
## 6 附加信息
|
||||
|
||||
如果您需要其他信息,请访问:
|
||||
|
||||
https://www.rt-thread.io/document/site/programming-manual/interrupt/interrupt/
|
||||
|
||||
##
|
||||
|
||||
###### 作者:
|
||||
###### Stanley Lwin [04 / 11 / 2023]
|
@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
### 1.2 Select RT-Thread Bsp Project into Workspace.
|
||||
|
||||
- Select RT-Thread Bsp Project into Workspace.
|
||||

|
||||
|
||||

|
||||
### 1.3 Import Projects from BSP.
|
||||
|
||||
- Import Projects from BSP.
|
||||

|
||||
|
||||

|
||||
### 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.
|
||||

|
||||
|
||||

|
||||
### 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.
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
## 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.
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
### 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.
|
||||

|
||||
|
||||

|
||||
> 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.
|
||||

|
||||
|
||||

|
||||
> 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.
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
### 3.2 After configuration, click save to update the latest configuration.
|
||||
|
||||
- After configuration, click save to update the latest configuration.
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
## 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.
|
||||

|
||||
|
||||

|
||||
### 4.2 Click compilation icon at the menu bar to compile the project.
|
||||
|
||||
- Click compilation icon at the menu bar to compile the project.
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
## 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.
|
||||

|
||||
|
||||

|
||||
## 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]
|
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/BuildSetting.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Folder.png
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/GUN_Tools.png
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Import.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Import_bsp.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Import_prj.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Info.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Project.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/SDK.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/SDK_ver.png
Normal file
After Width: | Height: | Size: 161 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/Workspace.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/build.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/build_finish.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/config.png
Normal file
After Width: | Height: | Size: 210 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/save_select.png
Normal file
After Width: | Height: | Size: 180 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/saveing.png
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/select.png
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/select_prj.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/softpkgs.png
Normal file
After Width: | Height: | Size: 209 KiB |
BIN
bsp/stm32/stm32f401-st-nucleo/figures_en/terminal.png
Normal file
After Width: | Height: | Size: 292 KiB |