diff --git a/bsp/stm32/docs/STM32系列如何创建新项目.md b/bsp/stm32/docs/STM32系列如何创建新项目.md new file mode 100644 index 0000000000..0d5893ff34 --- /dev/null +++ b/bsp/stm32/docs/STM32系列如何创建新项目.md @@ -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] diff --git a/bsp/stm32/stm32f401-st-nucleo/How to create a new project.md b/bsp/stm32/stm32f401-st-nucleo/How to create a new project.md index c660566d43..353c1c32ce 100644 --- a/bsp/stm32/stm32f401-st-nucleo/How to create a new project.md +++ b/bsp/stm32/stm32f401-st-nucleo/How to create a new project.md @@ -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] \ No newline at end of file diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/BuildSetting.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/BuildSetting.png new file mode 100644 index 0000000000..abfce202bb Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/BuildSetting.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Folder.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Folder.png new file mode 100644 index 0000000000..eec9ce5f7e Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Folder.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/GUN_Tools.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/GUN_Tools.png new file mode 100644 index 0000000000..0a21b8e67d Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/GUN_Tools.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Import.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import.png new file mode 100644 index 0000000000..1be6735701 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_bsp.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_bsp.png new file mode 100644 index 0000000000..386d9b5364 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_bsp.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_prj.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_prj.png new file mode 100644 index 0000000000..19e6a2f85d Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Import_prj.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Info.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Info.png new file mode 100644 index 0000000000..f6fd88e565 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Info.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Project.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Project.png new file mode 100644 index 0000000000..5e340da4de Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Project.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK.png new file mode 100644 index 0000000000..c733badd3f Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK_ver.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK_ver.png new file mode 100644 index 0000000000..589bbdfb9a Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/SDK_ver.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/Workspace.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/Workspace.png new file mode 100644 index 0000000000..3b17175c2b Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/Workspace.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/build.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/build.png new file mode 100644 index 0000000000..ffb3bfee63 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/build.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/build_finish.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/build_finish.png new file mode 100644 index 0000000000..23c0f35d22 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/build_finish.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/config.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/config.png new file mode 100644 index 0000000000..9c03daf0a0 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/config.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/save_select.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/save_select.png new file mode 100644 index 0000000000..01fe61fd66 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/save_select.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/saveing.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/saveing.png new file mode 100644 index 0000000000..c48c0071d1 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/saveing.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/select.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/select.png new file mode 100644 index 0000000000..87f04775a9 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/select.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/select_prj.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/select_prj.png new file mode 100644 index 0000000000..5edd0fd6f7 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/select_prj.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/softpkgs.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/softpkgs.png new file mode 100644 index 0000000000..4bc8c3a7fa Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/softpkgs.png differ diff --git a/bsp/stm32/stm32f401-st-nucleo/figures_en/terminal.png b/bsp/stm32/stm32f401-st-nucleo/figures_en/terminal.png new file mode 100644 index 0000000000..d967ee6210 Binary files /dev/null and b/bsp/stm32/stm32f401-st-nucleo/figures_en/terminal.png differ