Skip to content

Commit b31090d

Browse files
committed
Add IDE configure.
1 parent 9cfd580 commit b31090d

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

docs/code_gen/stm32/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ int main() {
108108

109109
- 必须为 STM32CubeMX 导出的 CMake 工程;
110110
- 必须存在 `.ioc` 文件;
111+
- FreeRTOS 必须开启互斥锁(`configUSE_MUTEXES`
111112

112113
---
113114

docs/env_setup/stm32.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,15 @@ sudo ln -s /opt/arm-gun-toolchain-xx.x/bin/* /usr/bin
4949
sudo apt update
5050
sudo apt install -y clang clangd
5151
```
52+
53+
## IDE配置
54+
55+
所有IDE都需要配置STM32CubeCLT路径,CLion还需要OpenOCD。
56+
57+
### VSCode
58+
59+
使用STM32官方插件(`STMicroelectronics.stm32-vscode-extension`)导入工程即可编译。
60+
61+
### CLion
62+
63+
使用CLion新建工程,选择STM32CubeMX,导入生成好的工程即可。

i18n/en/docusaurus-plugin-content-docs/current/code_gen/stm32/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Place `app_main()` in the entry function of the main thread.
108108

109109
- Must be a CMake project exported from STM32CubeMX
110110
- Must contain a valid `.ioc` file
111+
- Must enable Mutex when using FreeRTOS(`configUSE_MUTEXES`)
111112

112113
---
113114

i18n/en/docusaurus-plugin-content-docs/current/env_setup/stm32.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,15 @@ You can install it using apt. Ensure the version is 18.1 or above (versions in U
5252
sudo apt update
5353
sudo apt install -y clang clangd
5454
```
55+
56+
## IDE Configuration
57+
58+
All IDEs need to configure the STM32CubeCLT path. CLion also requires OpenOCD.
59+
60+
### VSCode
61+
62+
Use the official STM32 extension (`STMicroelectronics.stm32-vscode-extension`) to import and build the project.
63+
64+
### CLion
65+
66+
Create a new project in CLion, choose STM32CubeMX, and import the generated project.

0 commit comments

Comments
 (0)