Skip to content

Commit

Permalink
增加ubuntu使能RTduino介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Feb 9, 2024
1 parent 7ab274a commit 13cf182
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions zh/beginner/bsp-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@

本节默认使用者已经搭建好 Env 环境,如果你还没有搭建 Env 环境,请参照 [Env 编译环境搭建](/zh/beginner/env)章节,将 Env 工具在 Windows 10 下的环境搭建好。

这里以 `stm32f411-st-nucleo` BSP、Windows 10 操作系统环境为例,需要进入到 `rt-thread/bsp/stm32/stm32f411-st-nucleo` 文件夹下,按住 Shift 键+单击鼠标右键,点击**在此处打开 PowerShell 窗口**
这里以 `stm32f411-st-nucleo` BSP、Windows 10 操作系统环境为例,需要进入到 `rt-thread/bsp/stm32/stm32f411-st-nucleo` 文件夹下,按住 Shift 键+单击鼠标右键,点击**在此处打开 PowerShell 窗口**,并在窗口内键入 `menuconfig` 命令

在 menuconfig 界面中,选择使能 RTduino:
在 menuconfig 配置界面中,选择使能 RTduino:

```Kconfig
Hardware Drivers Config --->
Expand All @@ -128,6 +128,26 @@ Hardware Drivers Config --->

![rtduino-packages](./figures/bsp-develop/rtduino-packages.png)

## ** Ubuntu **

本节默认使用者已经搭建好 Env 环境,如果你还没有搭建 Env 环境,请参照 [Env 编译环境搭建](/zh/beginner/env)章节,将 Env 工具在 Ubuntu 下的环境搭建好。

这里以 **Raspberry Pi Pico** BSP 为例,在 Ubuntu 终端 或者 SSH 终端下切到该 BSP 的根目录下:

```bash
cd rt-thread/bsp/raspberry-pico
```

键入 `menuconfig` 命令进入 menuconfig 配置界面,并使能 RTduino:

```Kconfig
Hardware Drivers Config --->
Onboard Peripheral Drivers --->
[*] Compatible with Arduino Ecosystem (RTduino)
```

<!-- tabs:end -->

> ⚠️注意:
>
> 1. 如果没有自动下载依赖的软件包,可以通过命令 `menuconfig -s`,选中 `Auto update pkgs config` (该操作只需要执行一次)。并重新进一次 `menuconfig` 并退出,即可自动下载所依赖的软件包。
Expand All @@ -136,17 +156,10 @@ Hardware Drivers Config --->
> Env config --->
> [*] Auto update pkgs config
> Select download server (Auto) --->
> [ ] Auto create a Keil-MDK or IAR project
> [ ] Send usage data for improve product
> ```
>
> 2. 下载依赖软件包时,如果出现下载失败的问题,请检查是否开启了 VPN,VPN 会干扰软件包下载,请关闭 VPN
> 2. 下载依赖软件包时,如果出现下载失败的问题,请检查是否开启了代理,代理会干扰软件包下载,请关闭代理
## ** Ubuntu **
本节默认使用者已经搭建好 Env 环境,如果你还没有搭建 Env 环境,请参照 [Env 编译环境搭建](/zh/beginner/env)章节,将 Env 工具在 Ubuntu 下的环境搭建好。
<!-- tabs:end -->
## 4 编译BSP
Expand Down

0 comments on commit 13cf182

Please sign in to comment.