|
10 | 10 |
|
11 | 11 | 本小节将带着大家把整个 BSP 编译、下载流程梳理一遍,假设您已经搭建好 Env 编译环境,并下载好 RT-Thread 源码。在此之前,我们需要先了解目前哪些 RT-Thread BSP 已经支持了 RTduino。 |
12 | 12 |
|
13 | | -## 2 已经支持RTduino的BSP |
14 | 13 |
|
15 | | -### 2.1 官方建议入门BSP |
16 | | - |
17 | | -以下 BSP 由 RTduino/RT-Thread 官方支持,其功能得到官方验证,并配有详细入门资料,不会踩坑,建议初学者选择。**请在选择所需的对应BSP芯片厂商。** |
18 | | - |
19 | | -<!-- tabs:start --> |
20 | | - |
21 | | -## ** STM32 ** |
22 | | - |
23 | | -- 编译环境:Windows 7/8/10、Ubuntu、MacOS |
24 | | -- 工具:Env |
25 | | -- 工具链:GCC (gcc-arm-none-eabi) |
26 | | - |
27 | | -| BSP名称 | 仓库 & 概述 | [标准引脚布局](/zh/beginner/arduino-pinout) | DigitalWrite & Read | AnalogWrite / PWM | AnalogRead / ADC | 串口 | I2C | SPI | |
28 | | -| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- | ------------------- | ----------------- | ---------------- | --- | --- | --- | |
29 | | -| STM32F072 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout) | √ | √ | √ | √ | √ | √ | √ | |
30 | | -| STM32F401 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout) | √ | √ | √ | √ | √ | √ | √ | |
31 | | -| STM32F410 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f410-st-nucleo) | √ | √ | √ | √ | √ | √ | × | |
32 | | -| STM32F411 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f411-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f411-st-nucleo) | √ | √ | √ | √ | √ | √ | √ | |
33 | | -| STM32F412 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f412-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f412-st-nucleo) | √ | √ | √ | √ | √ | √ | √ | |
34 | | -| STM32L476 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32l476-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32l476-st-nucleo) | √ | √ | √ | √ | √ | √ | √ | |
35 | | -| STM32G474 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32g474-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32g474-st-nucleo) | √ | √ | √ | √ | √ | √ | √ | |
36 | | -| STM32U575 Nucleo | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32u575-st-nucleo/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32u575-st-nucleo) | √ | √ | √ | √ | √ | √ | × | |
37 | | -| STM32F469 Discovery | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f469-st-disco/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f469-st-disco) | √ | √ | √ | √ | √ | √ | √ | |
38 | | -| STM32F103 BluePill | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f103-blue-pill) | × | √ | √ | √ | √ | √ | √ | |
39 | | -| STM32F401 BlackPill | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f401-weact-blackpill/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f401-weact-blackpill) | × | √ | √ | √ | √ | √ | √ | |
40 | | -| STM32F411 BlackPill | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f411-weact-blackpill/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32f411-weact-blackpill) | × | √ | √ | √ | √ | √ | √ | |
41 | | -| STM32L475潘多拉 | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32l475-atk-pandora) | × | √ | √ | √ | √ | √ | √ | |
42 | | -| STM32L431小熊派 | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32l431-BearPi/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/stm32/stm32l431-BearPi) | × | √ | √ | √ | √ | √ | √ | |
43 | | - |
44 | | -## ** Renesas 瑞萨 ** |
45 | | - |
46 | | -- 编译环境:Windows 7/8/10、Ubuntu、MacOS |
47 | | -- 工具:Env |
48 | | -- 工具链:GCC (gcc-arm-none-eabi) |
49 | | - |
50 | | -| BSP名称 | 仓库 & 概述 | [标准引脚布局](/zh/beginner/arduino-pinout) | DigitalWrite & Read | AnalogWrite / PWM | AnalogRead / ADC | 串口 | I2C | SPI | |
51 | | -| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------- | ------------------- | ----------------- | ---------------- | --- | --- | --- | |
52 | | -| 瑞萨 RA6M3 HMI | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/renesas/ra6m3-hmi-board/board/rtduino/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/renesas/ra6m3-hmi-board/board/rtduino/arduino_pinout) | √ | √ | √ | √ | √ | √ | × | |
53 | | - |
54 | | -## ** Raspberry Pi Pico ** |
55 | | - |
56 | | -- 编译环境:Ubuntu、MacOS |
57 | | -- 工具:Env |
58 | | -- 工具链:GCC (gcc-arm-none-eabi) |
59 | | - |
60 | | -| BSP名称 | 仓库 & 概述 | [标准引脚布局](/zh/beginner/arduino-pinout) | DigitalWrite & Read | AnalogWrite / PWM | AnalogRead / ADC | 串口 | I2C | SPI | |
61 | | -| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- | ------------------- | ----------------- | ---------------- | --- | --- | --- | |
62 | | -| Raspberry Pi Pico | [Github](https://github.com/RT-Thread/rt-thread/tree/master/bsp/raspberry-pico/applications/arduino_pinout) / [Gitee](https://gitee.com/rtthread/rt-thread/tree/master/bsp/raspberry-pico/applications/arduino_pinout) | × | √ | √ | √ | √ | × | × | |
63 | | - |
64 | | -<!-- tabs:end --> |
65 | | - |
66 | | -### 2.2 社区适配BSP |
67 | | - |
68 | | -以下 BSP 由 RTduino/RT-Thread 社区支持。**请在选择所需的对应BSP芯片厂商。** |
69 | | - |
70 | | -<!-- tabs:start --> |
71 | | - |
72 | | -## ** STM32 ** |
73 | | - |
74 | | -| BSP名称 | 资料 | |
75 | | -| -------------------------------------------------------------------------------------------------------------------------------------------- | --- | |
76 | | -| [大疆STM32F427 RoboMaster A板](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f427-robomaster-a/applications/arduino_pinout) | | |
77 | | -| [大疆STM32F407 Robomaster C型](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f407-robomaster-c/applications/arduino_pinout) | | |
78 | | - |
79 | | -## ** NXP 恩智浦 ** |
80 | | - |
81 | | -| BSP名称 | 资料 | |
82 | | -| -------------------------------------------------------------------------------------------------------------------------------- | --- | |
83 | | -| [NXP LPC55S69 EVK](https://github.com/RT-Thread/rt-thread/tree/master/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_pinout) | | |
84 | | - |
85 | | -## ** CH32 ** |
86 | | - |
87 | | -| BSP名称 | 资料 | |
88 | | -| -------------------------------------------------------------------------------------------------------------------------- | --- | |
89 | | -| [CH32V307V-R1](https://github.com/RT-Thread/rt-thread/tree/master/bsp/wch/risc-v/ch32v307v-r1/applications/arduino_pinout) | | |
90 | | -| [CH32V208W-R0](https://github.com/RT-Thread/rt-thread/tree/master/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout) | | |
91 | | - |
92 | | -## ** 东软载波 ** |
93 | | - |
94 | | -| BSP名称 | 资料 | |
95 | | -| ------------------------------------------------------------------------------------------------------------------ | --- | |
96 | | -| [ES32F3696](https://github.com/RT-Thread/rt-thread/tree/master/bsp/essemi/es32f369x/applications/arduino_pinout) | | |
97 | | -| [ES32VF2264](https://github.com/RT-Thread/rt-thread/tree/master/bsp/essemi/es32vf2264/applications/arduino_pinout) | | |
98 | | - |
99 | | -<!-- tabs:end --> |
100 | | - |
101 | | -## 3 使能RTduino |
| 14 | +## 2 使能RTduino |
102 | 15 |
|
103 | 16 | <!-- tabs:start --> |
104 | 17 |
|
@@ -169,15 +82,15 @@ Hardware Drivers Config ---> |
169 | 82 | > 2. 如果不想使用自动下载依赖软件包功能,可以使用 `pkgs --update` 命令手动触发下载。 |
170 | 83 | > 3. 下载依赖软件包时,如果出现下载失败的问题,请检查是否开启了代理,代理会干扰软件包下载,请关闭代理。 |
171 | 84 |
|
172 | | -## 4 编译BSP |
| 85 | +## 3 编译BSP |
173 | 86 |
|
174 | 87 | 在软件包均下载完毕之后,即可通过 `scons -j12` 命令来编译工程(12表示12个 CPU 核心并行编译,数字根据电脑硬件实际情况填写)。 |
175 | 88 |
|
176 | 89 |  |
177 | 90 |
|
178 | 91 |  |
179 | 92 |
|
180 | | -## 5 将程序烧录到板卡 |
| 93 | +## 4 将程序烧录到板卡 |
181 | 94 |
|
182 | 95 | **请在选择所需的对应BSP芯片厂商。** |
183 | 96 |
|
|
0 commit comments