• 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-

.config A D21-Aug-202546.3 KiB1,4221,312

.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-20258 KiB185184

.secure_xml A D21-Aug-202518.5 KiB247246

Kconfig A D21-Aug-2025367 1811

README.md A D21-Aug-20257.3 KiB

README_EN.md A D21-Aug-20256.7 KiB156105

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-202582.5 KiB1,0161,015

memory_regions.scat A D21-Aug-20251.5 KiB3129

project.uvoptx A D21-Aug-20256.5 KiB214204

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

rtconfig.h A D21-Aug-20258.3 KiB41981

rtconfig.py A D21-Aug-20254.4 KiB138106

template.uvoptx A D21-Aug-20256.5 KiB214204

template.uvprojx A D21-Aug-202515.6 KiB425419

README_EN.md

1# EK-RA8D1 BSP Instruction
2
3中文|[English](README.md)
4
5## Introduction
6
7Prepare for an exhilarating journey into the realm of the EK-RA8D1 development board! This guide is your treasure map, leading you to a trove of knowledge about the Board Support Package (BSP). The Quick Start section is your launchpad, propelling developers into action with the BSP, and getting RT-Thread operational on the development board faster than a speeding bullet.
8
9Here’s a sneak peek of the adventure that awaits:
10
11• A captivating exploration of the development board
12
13• A practical and user-friendly BSP Quick Start Guide
14
15## Hardware
16
17The EK-RA8D1 evaluation board, developed based on the Renesas RA8D1 MCU, is a handy tool that allows users to easily evaluate the features of the RA8 MCU group. With flexible software package and IDE configurations, it’s a breeze to develop embedded system applications.
18
19Here’s a sneak peek of what the front of the development board looks like:
20
21![](docs/picture/front.png)
22
23The board comes with some commonly used **on-board resources**. Let’s dive in and explore!
24
25- MCU:R7FA8D1BH, 480MHz, **Arm®Cortex®-M85**, 2MB Flash, 1MB SRAM
26- Jlink OB
27- OSPI FLASH(64MX8)
28- USB-Host
29- USB-Device
30- CANFD
31- ethernet
32- 2个PMOD+Arduino+micro BUS interface
33- 3 user LED
34- 3 button: 2 user button, 1 reset button
35
36**More Details**
37
38### Peripheral Condition
39
40Each peripheral supporting condition for this BSP is as follows:
41
42| **On-chip Peripheral Drivers** | **Support** | **Remark** |
43| :----------------: | :----------------: | :------------- |
44| UART               | Support        | UART9 is the default log output port. |
45| GPIO               | Support        |                |
46| USB | Support | TinyUSB |
47| Camera | Support | ov2640、ov7725、ov7670... |
48| SDHC | Support | 1bit、4bit |
49| ADC | Support | |
50| DAC | Support | |
51| SPI | Support | |
52| PWM | Support | |
53| RTC | Support | |
54| FLASH |   Support   | On board flash |
55| WDT | Support | |
56| IIC | Support | |
57
58## Instructions for Use
59
60The instructions for use are divided into the following two sections:
61
62• Quick Start
63
64This section is a user guide for newcomers to RT-Thread. By following simple steps, you can run the RT-Thread operating system on this development board and see the experimental results.
65
66• Advanced Use
67
68This section is for developers who want to enable more development board resources on the RT-Thread operating system. By using the ENV tool to configure the BSP, you can enable more on-board resources and achieve more advanced functions.
69
70### Quick Start
71
72This BSP currently only provides an MDK5 project. The following tutorial takes the MDK5 development environment as an example to introduce how to run the system.
73
74**Compile and Download**
75
76• Compile: Double-click the **project.uvprojx** file to open the MDK5 project and compile the program.
77
78• Download: Click the Debug button in MDK to download and debug
79
80**Running results**
81
82After the program is downloaded successfully, the system will automatically run and print system information.
83
84Connect the corresponding serial port of the development board to the PC, open the corresponding serial port (115200-8-1-N) in the terminal tool, reset the device, and you can see RT-Thread’s output information. Enter the help command can view the commands supported by the system.
85
86```bash
87initialize rti_board_start:0 done
88
89 \ | /
90- RT -     Thread Operating System
91 / | \     5.1.0 build Oct 30 2023 16:14:05
92 2006 - 2022 Copyright by RT-Thread team
93do components initialization.
94initialize rti_board_end:0 done
95initialize finsh_system_init:0 done
96
97Hello RT-Thread!
98msh >
99```
100
101**Entry function**
102
103The entry function of the application layer is in **bsp\renesas\ra8d1-ek\src\hal_entry.c** in `void hal_entry(void)`. Source files that you created can be placed directly in the src directory.
104
105```c
106void hal_entry(void)
107{
108    rt_kprintf("\nHello RT-Thread!\n");
109
110    while (1)
111    {
112        rt_pin_write(LED_PIN, PIN_HIGH);
113        rt_thread_mdelay(500);
114        rt_pin_write(LED_PIN, PIN_LOW);
115        rt_thread_mdelay(500);
116    }
117}
118```
119
120### Advanced Features
121
122**Resources & Documents**
123
124- [Development Board Overview](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra8d1-evaluation-kit-ra8d1-mcu-group#documents)
125- [User Guide](https://www.renesas.com/us/en/document/mat/ek-ra8d1-v1-users-manual?r=25452351)
126- [RA MCU](https://www.renesas.com/us/en/document/gde/1520091)
127
128**ENV Configuration**
129
130• How to use the ENV tool: [RT-Thread env tool user manual](https://www.rt-thread.io/document/site/programming-manual/env/env/).
131
132This BSP only enables the function of UART9 by default. If you're looking for more advanced functions such as components and software packages, ENV tool for configuration is available.
133
134The steps are as follows:
135
1361. Open the env tool under bsp.
1372. Enter the `menuconfig` command to configure the project, and save and exit after configuration.
1383. Enter the `pkgs --update` command to update the software package.
1394. Enter the `scons --target=mdk5` command to regenerate the project.
140
141**FSP Configuration**
142
143*   How to Use FSP: [Configuring Peripheral Drivers for RA Series Using FSP](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/tutorial/make-bsp/renesas-ra/RA系列使用FSP配置外设驱动?id=ra系列使用-fsp-配置外设驱动)
144
145The current repository's BSP is configured with the minimum footprint enabled by default. Users can enable peripheral configurations through the following steps:
146
1471. Open the `env` tool in the BSP directory and use the `scons --target=mdk5` command to generate an MDK project.
1482. Open the `project.uvprojx` file in the BSP directory, select the `Software Components` configuration in the top navigation bar, and open the configuration button next to `RA Configuration` under `Flex Software`. This operation will automatically detect the installed FSP version on the current computer. After selecting the specified version, enter FSP.
149    ![](../docs/figures/mdk_rasc.png)
1503. Upon entering FSP, pre-configured peripherals are already present. Click the `Generate Project Content` button to generate the required driver files.
151    ![](../docs/figures/fsp_configure.png)
1524. Return to `env`, enable the necessary peripheral configurations, save, and exit.
153
154## Contribute the Code
155
156If you’re interested in the EK-RA8D1 and have some cool projects you’d like to share with everyone, we’d love for you to contribute your code! You can check out [how to contribute to RT-Thread’s code](https://www.rt-thread.io/contribution.html). Let’s make something awesome together!