• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

.settings/21-Aug-2025-

board/21-Aug-2025-

docs/picture/21-Aug-2025-

ra/21-Aug-2025-

ra_cfg/21-Aug-2025-

ra_gen/21-Aug-2025-

script/21-Aug-2025-

src/21-Aug-2025-

.api_xml A D21-Aug-202569 32

.config A D21-Aug-202546.4 KiB1,4251,315

.cproject A D21-Aug-202538.7 KiB223222

.gitignore A D21-Aug-202541 64

.ignore_format.yml A D21-Aug-2025280 108

.project A D21-Aug-2025916 2928

.secure_azone A D21-Aug-20256.5 KiB152151

.secure_xml A D21-Aug-202515.8 KiB214213

Kconfig A D21-Aug-2025367 1811

README.md A D21-Aug-20259.8 KiB196117

README_zh.md A D21-Aug-20258.1 KiB190121

SConscript A D21-Aug-2025735 2923

SConstruct A D21-Aug-20251.9 KiB6852

buildinfo.gpdsc A D21-Aug-202510.3 KiB150149

configuration.xml A D21-Aug-202573.8 KiB946945

memory_regions.scat A D21-Aug-20251.5 KiB3129

project.uvoptx A D21-Aug-20257.1 KiB219209

project.uvprojx A D21-Aug-202542.7 KiB1,1871,186

rtconfig.h A D21-Aug-20258.3 KiB42183

rtconfig.py A D21-Aug-20254.3 KiB135103

template.uvoptx A D21-Aug-20257.1 KiB219209

template.uvprojx A D21-Aug-202515.6 KiB425419

README.md

1# Vision Board BSP Introduction
2
3**English** | [**中文**](./README_zh.md)
4
5## Overview
6
7The Vision-Board is introduced by RT-Thread, in collaboration with Renesas Electronics, the vision board is based on the Renesas Cortex-M85 architecture RA8D1 chip, to provide engineers with a flexible and comprehensive development platform, empowering developers to gain deeper experiences in the field of machine vision.
8
9[![img](https://github.com/RT-Thread/rt-thread/raw/master/bsp/renesas/ra8d1-vision-board/docs/picture/logo.png)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/renesas/ra8d1-vision-board/docs/picture/logo.png)
10
11## Hardware Introduction
12
13The Vision-Board comes equipped with various onboard resources, including:
14
15![img](https://cdn-images-1.medium.com/max/1250/1*yuc1gyHjYpg7yd7x_8ICAg.png)
16
17
18
19## Peripheral Support
20
21The BSP currently supports several peripherals as listed below:
22
23| On-Chip Peripheral | Support Status | Remarks                              |
24| ------------------ | -------------- | ------------------------------------ |
25| UART               | Supported      | UART9 is the default log output port |
26| GPIO               | Supported      |                                      |
27| USB                | Supported      | TinyUSB                              |
28| Camera             | Supported      | ov2640, ov7725, ov7670...            |
29| SDHC               | Supported      | 1-bit, 4-bit                         |
30| ADC                | Supported      |                                      |
31| DAC                | Supported      |                                      |
32| SPI                | Supported      |                                      |
33| PWM                | Supported      |                                      |
34| RTC                | Supported      |                                      |
35| FLASH              | Supported      |                                      |
36| WDT                | Supported      |                                      |
37| I2C                | Supported      |                                      |
38| Wi-Fi              | Supported      | RW007                                |
39
40- Note: The repository initially contains the minimal system. Additional peripherals can be added/enabled by referring to the [Peripheral Driver Usage Tutorial](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列BSP外设驱动使用教程).
41
42## Template Project Description
43
44
45
46[![img](https://github.com/RT-Thread/rt-thread/raw/master/bsp/renesas/ra8d1-vision-board/docs/picture/1.png)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/renesas/ra8d1-vision-board/docs/picture/1.png)
47
48[![img](https://github.com/RT-Thread/rt-thread/raw/master/bsp/renesas/ra8d1-vision-board/docs/picture/2.png)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/renesas/ra8d1-vision-board/docs/picture/2.png)
49
50The RGB-LED, as shown above, is a common anode LED. The cathodes are connected to the microcontroller pins. For instance, the blue LED corresponds to pin P102. The LED can be lit by setting the microcontroller pin to a low level and turned off by setting it to a high level.
51
52## Software Introduction
53
54The source code for flashing the LED is located in `ra8d1-vision-board/src/hal_entry.c`. It defines a macro `LED_PIN` representing the LED pin number, corresponding to `BSP_IO_PORT_01_PIN_02` (P102).
55
56```
57#define LED_PIN    BSP_IO_PORT_01_PIN_02 /* Onboard LED pins */
58```
59
60In the `hal_entry` function, this pin is configured as an output. The LED is toggled periodically (every 500 milliseconds) in the while loop.
61
62```
63void hal_entry(void)
64{
65    rt_kprintf("\nHello RT-Thread!\n");
66
67    while (1)
68    {
69        rt_pin_write(LED_PIN, PIN_HIGH);
70        rt_thread_mdelay(500);
71        rt_pin_write(LED_PIN, PIN_LOW);
72        rt_thread_mdelay(500);
73    }
74}
75```
76
77
78
79## Usage Instructions
80
81Usage instructions are divided into two sections:
82
83- Quick Start
84  - This section provides instructions for newcomers to RT-Thread to run the RT-Thread operating system on this development board and observe experimental results.
85- Advanced Usage
86  - This section is for developers who need to utilize more development board resources on the RT-Thread operating system. It guides users on enabling more onboard resources using the ENV tool to achieve more advanced functionality.
87
88### Supported Compilation Platforms
89
90- armclang (AC6 V6.19)
91- LLVM (V16/17) [ARM-software/LLVM-embedded-toolchain-for-Arm (github.com)](https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/tag/release-17.0.1)
92
93## FSP Version Introduction
94
95This BSP uses FSP 5.1.0 version for peripheral-related development. Users need to download and install it. Additionally, instructions for enabling additional peripherals are provided in the [Peripheral Driver Usage Tutorial](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列BSP外设驱动使用教程).
96
97
98
99### Quick Start
100
101#### 1. Compiling with MDK:
102
103This BSP provides an MDK5 project. Compile and download the program using the MDK5 development environment.
104
105**Compile and Download**
106
107- Compile: Double-click the project.uvprojx file to open the MDK5 project and compile the program.
108- Download: Click the Debug button in MDK to download and debug."
109
110
111
112#### 2. Compiling with LLVM
113
114Open the current BSP using the ENV tool to set the toolchain and its corresponding path. Then, execute the `scons` command to compile.
115
116```
117set RTT_CC=llvm-arm
118set RTT_EXEC_PATH=D:\Progrem\LLVMEmbeddedToolchainForArm-17.0.1-Windows-x86_64\bin
119```
120
121execute the `scons` command to compile.
122
123```
124scons
125```
126
127**Observing the Program Execution**
128
129Once the program is downloaded successfully, the system will initiate automatically, displaying system information.
130
131Connect the development board's respective serial port to the PC. Launch the terminal tool and configure the serial port settings accordingly (115200-8-1-N). Upon resetting the device, you'll observe output information from RT-Thread. To explore the system's supported commands, enter the "help" command.
132
133```
134[D/main] sdram init success, mapped at 0x68000000, size is 33554432 bytes, data width is 16
135
136 \ | /
137- RT -     Thread Operating System
138 / | \     5.1.0 build Mar  5 2024 13:57:23
139 2006 - 2024 Copyright by RT-Thread team
140
141Hello RT-Thread!
142msh >
143msh >
144```
145
146
147
148### Advanced Usage
149
150**Resources and Documentation**
151
152- [Official Development Board Website](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra8d1-evaluation-kit-ra8d1-mcu-group)
153- [Development Board User Manual](https://www.renesas.cn/cn/zh/document/mat/ek-ra8d1-v1-users-manual?r=25452351)
154
155**ENV Configuration**
156
157- How to use the ENV tool: [RT-Thread ENV Tool User Manual](https://www.rt-thread.io/document/site/programming-manual/env/env/)
158
159By default, this BSP only enables UART9 functionality. If you require more advanced features such as components, software packages, etc., you'll need to configure them using the ENV tool.
160
161The steps are as follows:
162
1631. Open the ENV tool in the bsp directory.
1642. Enter the "menuconfig" command to configure the project. Once configured, save and exit.
1653. Use the "pkgs --update" command to update software packages.
1664. Use the "scons --target=mdk5" command to regenerate the project.
167
168***FSP Configuration**
169
170- How to use FSP: [Configuring Peripheral Drivers Using FSP for RA Series](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列使用FSP配置外设驱动?id=ra系列使用-fsp-配置外设驱动)
171
172The BSP repository currently enables the minimum configuration by default. Users can enable ENV peripheral configurations through the following steps:
173
1741. Open the ENV tool in the bsp directory and generate an MDK project using the `scons --target=mdk5'`Command.
1752. Open the `project.uvprojx` file in the bsp directory. Navigate to the `Software Components"`configuration in the top navigation bar. Open the configuration button next to `RA Configuration` under `Flex Software`. This action will automatically detect the installed FSP version on your computer. After selecting the specified version, enter FSP.
176
177[![img](https://github.com/RT-Thread/rt-thread/raw/master/bsp/renesas/docs/figures/mdk_rasc.png)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/renesas/docs/figures/mdk_rasc.png)
178
1793. Inside FSP, you'll find some pre-configured peripherals. Click the `Generate Project Content` button to generate the required driver files.
180
1811. [![img](https://github.com/RT-Thread/rt-thread/raw/master/bsp/renesas/docs/figures/fsp_configure.png)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/renesas/docs/figures/fsp_configure.png)
182   4. Return to ENV, save and exit after enabling the required peripheral configurations.
183
184
185
186## Contact Information
187
188If you have any ideas or suggestions during usage, we encourage you to contact us via the [RT-Thread Community Forum](https://club.rt-thread.io/).
189
190## SDK Repository
191
192This is the SDK repository for Vision Board: [sdk-bsp-ra8d1-vision-board](https://github.com/RT-Thread-Studio/sdk-bsp-ra8d1-vision-board). This repository includes peripheral drivers and a variety of sample projects. If you'd like to experience open-source examples provided by the official website/community, please visit this repository for development. The RT-Thread main repository only maintains the latest driver-related code.
193
194## Code Contributions
195
196If you're interested in Vision Board and have some exciting projects to share with the community, wlecome any contributions. Please refer to [How to Contribute to RT-Thread Code](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/development-guide/github/github).

README_zh.md

1# Vision Board 开发板 BSP 说明
2
3**中文** | [**English**](./README.md)
4
5## 简介
6
7Vision-Board 开发板是 RT-Thread 推出基于瑞萨 Cortex-M85 架构 RA8D1 芯片,为工程师们提供了一个灵活、全面的开发平台,助力开发者在机器视觉领域获得更深层次的体验。
8
9![](docs/picture/logo.png)
10
11## 开发板介绍
12
13该开发板常用 **板载资源** 如下:
14
15![](docs/picture/hw.png)
16
17## 外设支持
18
19本 BSP 目前对外设的支持情况如下:
20
21| **片上外设** | **支持情况** |         **备注**          |
22| :----------: | :----------: | :-----------------------: |
23|     UART     |     支持     | UART9 为默认日志输出端口  |
24|     GPIO     |     支持     |                           |
25|     USB      |     支持     |          TinyUSB          |
26|    Camera    |     支持     | ov2640、ov7725、ov7670... |
27|     SDHC     |     支持     |        1bit、4bit         |
28|     ADC      |     支持     |                           |
29|     DAC      |     支持     |                           |
30|     SPI      |     支持     |                           |
31|     PWM      |     支持     |                           |
32|     RTC      |     支持     |                           |
33|    FLASH     |     支持     |                           |
34|     WDT      |     支持     |                           |
35|     IIC      |     支持     |                           |
36|    Wi-Fi     |     支持     |           RW007           |
37
38* 注意:仓库刚拉下来是最小系统,若需添加/使能其他外设需参考:[外设驱动使用教程 (rt-thread.org)](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列BSP外设驱动使用教程)
39
40## 模板工程说明
41
42![](docs/picture/1.png)
43
44![](docs/picture/2.png)
45
46如上图所示,RGB-LED 属于共阳 LED, **阴极** 分别与单片机的引脚相连,其中蓝色 LED 对应 P102 引脚。单片机引脚输出低电平即可点亮 LED,输出高电平则会熄灭 LED。
47
48## 软件说明
49
50闪灯的源代码位于 `ra8d1-vision-board/src/hal_entry.c` 中。首先定义了一个宏 `LED_PIN` ,代表闪灯的 LED 引脚编号,然后与 `BSP_IO_PORT_01_PIN_02`(**P102 **)对应:
51
52```
53#define LED_PIN    BSP_IO_PORT_01_PIN_02 /* Onboard LED pins */
54```
55
56在 main 函数中,将该引脚配置为输出模式,并在下面的 while 循环中,周期性(500毫秒)开关 LED。
57
58```
59void hal_entry(void)
60{
61    rt_kprintf("\nHello RT-Thread!\n");
62
63    while (1)
64    {
65        rt_pin_write(LED_PIN, PIN_HIGH);
66        rt_thread_mdelay(500);
67        rt_pin_write(LED_PIN, PIN_LOW);
68        rt_thread_mdelay(500);
69    }
70}
71```
72
73## 使用说明
74
75使用说明分为如下两个章节:
76
77- 快速上手
78
79  本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
80
81- 进阶使用
82
83  本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
84
85### 支持的编译平台
86
87* armclang(AC6 V6.19)
88* LLVM(V16/17)[ARM-software/LLVM-embedded-toolchain-for-Arm (github.com)](https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/tag/release-17.0.1)
89
90## FSP版本说明
91
92本BSP使用的是FSP5.1.0版本,进行外设相关开发需要下载并安装。
93
94* 下载链接:[rasc-5.1.0](https://github.com/renesas/fsp/releases/download/v5.1.0/setup_fsp_v5_1_0_rasc_v2023-10.exe)
95
96* 注意:BSP默认是最小系统,若需添加/使能其他外设需参考:[外设驱动使用教程 (rt-thread.org)](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列BSP外设驱动使用教程)
97
98### 快速上手
99
100#### 1、使用 MDK 编译:
101
102**注意:如果使用master开发需要先打开ENV进入meuconfig然后退出保存配置,再输入scons --target=mdk5生成下工程**
103
104本 BSP 目前提供 MDK5 工程。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
105
106**编译下载**
107
108- 编译:双击 project.uvprojx 文件,打开 MDK5 工程,编译程序。
109- 下载:点击 MDK 的 Debug 按钮进行下载调试
110
111#### 2、使用 LLVM 编译
112
113使用 env 工具打开当前 bsp,设定要使用的工具链和对应的路径。
114
115```shell
116set RTT_CC=llvm-arm
117set RTT_EXEC_PATH=D:\Progrem\LLVMEmbeddedToolchainForArm-17.0.1-Windows-x86_64\bin
118```
119
120然后运行 scons 命令,执行编译
121
122```shell
123scons
124```
125
126**查看运行结果**
127
128下载程序成功之后,系统会自动运行并打印系统信息。
129
130连接开发板对应串口到 PC , 在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息。输入 help 命令可查看系统中支持的命令。
131
132```bash
133[D/main] sdram init success, mapped at 0x68000000, size is 33554432 bytes, data width is 16
134
135 \ | /
136- RT -     Thread Operating System
137 / | \     5.1.0 build Mar  5 2024 13:57:23
138 2006 - 2024 Copyright by RT-Thread team
139
140Hello RT-Thread!
141msh >
142msh >
143```
144
145### 进阶使用
146
147**资料及文档**
148
149- [开发板官网主页](https://www.renesas.cn/cn/zh/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra8d1-evaluation-kit-ra8d1-mcu-group#overview)
150- [开发板用户手册](https://www.renesas.cn/cn/zh/document/mat/ek-ra8d1-v1-users-manual?r=25452351)
151- [瑞萨RA MCU 基础知识](https://www2.renesas.cn/cn/zh/document/gde/1520091)
152
153**ENV 配置**
154
155- 如何使用 ENV 工具:[RT-Thread env 工具用户手册](https://www.rt-thread.org/document/site/#/development-tools/env/env)
156
157此 BSP 默认只开启了 UART9 的功能,如果需使用更多高级功能例如组件、软件包等,需要利用 ENV 工具进行配置。
158
159步骤如下:
160
1611. 在 bsp 下打开 env 工具。
1622. 输入`menuconfig`命令配置工程,配置好之后保存退出。
1633. 输入`pkgs --update`命令更新软件包。
1644. 输入`scons --target=mdk5` 命令重新生成工程。
165
166**FSP配置**
167
168*   如何使用 FSP:[RA系列使用 FSP 配置外设驱动](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列使用FSP配置外设驱动?id=ra系列使用-fsp-配置外设驱动)
169
170目前仓库 bsp 默认使能最小体量配置,用户可通过如下步骤使能 env 外设配置:
171
1721. 在 bsp 目录下打开 env 工具,使用 `scons --target=mdk5`命令生成 MDK 工程。
1732. 打开 bsp 目录下的`project.uvprojx`文件,选择上方导航栏的 `Software Components`配置,打开后找到`Flex Software`下的`RA Configuration`旁的配置按钮,该操作会自动查找当前电脑环境下安装的 fsp 版本,选择指定版本后进入 fsp。
174   ![](../docs/figures/mdk_rasc.png)
1753. 在进入 fsp 后我们可以发现,已经存在了一些已经配置完成的外设,此时我们点击`Generate Project Content`按钮即可生成所需驱动文件。
176   ![](../docs/figures/fsp_configure.png)
1774. 接下来回到 env,使能所需的外设配置后保存退出即可。
178
179## 联系人信息
180
181在使用过程中若您有任何的想法和建议,建议您通过以下方式来联系到我们  [RT-Thread 社区论坛](https://club.rt-thread.org/)
182
183## SDK 仓库
184
185这是 Vision Board 的 SDK 仓库地址:[sdk-bsp-ra8d1-vision-board](https://github.com/RT-Thread-Studio/sdk-bsp-ra8d1-vision-board),该仓库包括了外设驱动以及丰富的示例工程,如果像体验官网/社区提供的开源示例请转移到该仓库进行开发。RT-Thread 主仓库只维护最新的驱动相关代码。
186
187## 贡献代码
188
189如果您对  Vision Board 感兴趣,并且有一些好玩的项目愿意与大家分享的话欢迎给我们贡献代码,您可以参考 [如何向 RT-Thread 代码贡献](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/development-guide/github/github)190