|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 21-Aug-2025 | - |
| .settings/ | | 21-Aug-2025 | - | | |
| board/ | | 21-Aug-2025 | - | | |
| figures/ | | 21-Aug-2025 | - | | |
| rzn/ | | 21-Aug-2025 | - | | |
| rzn_cfg/ | | 21-Aug-2025 | - | | |
| rzn_gen/ | | 21-Aug-2025 | - | | |
| script/ | | 21-Aug-2025 | - | | |
| src/ | | 21-Aug-2025 | - | | |
| .api_xml | A D | 21-Aug-2025 | 69 | 3 | 2 |
| .config | A D | 21-Aug-2025 | 45.8 KiB | 1,407 | 1,297 |
| .cproject | A D | 21-Aug-2025 | 39.1 KiB | 222 | 221 |
| .gitignore | A D | 21-Aug-2025 | 177 | 14 | 14 |
| .project | A D | 21-Aug-2025 | 913 | 29 | 28 |
| .secure_azone | A D | 21-Aug-2025 | 119 | 5 | 4 |
| .secure_xml | A D | 21-Aug-2025 | 8.1 KiB | 111 | 110 |
| Kconfig | A D | 21-Aug-2025 | 348 | 18 | 11 |
| README.md | A D | 21-Aug-2025 | 9 KiB | 171 | 117 |
| README_zh.md | A D | 21-Aug-2025 | 7.8 KiB | 166 | 116 |
| SConscript | A D | 21-Aug-2025 | 738 | 28 | 23 |
| SConstruct | A D | 21-Aug-2025 | 1.6 KiB | 56 | 43 |
| buildinfo.ipcf | A D | 21-Aug-2025 | 7.8 KiB | 157 | 156 |
| configuration.xml | A D | 21-Aug-2025 | 89.2 KiB | 1,040 | 1,039 |
| project.ewd | A D | 21-Aug-2025 | 115.2 KiB | 3,277 | 3,276 |
| project.ewp | A D | 21-Aug-2025 | 82.2 KiB | 2,899 | 2,898 |
| project.ewt | A D | 21-Aug-2025 | 231.4 KiB | 3,434 | 3,433 |
| project.eww | A D | 21-Aug-2025 | 161 | 11 | 7 |
| rtconfig.h | A D | 21-Aug-2025 | 8.1 KiB | 412 | 74 |
| rtconfig.py | A D | 21-Aug-2025 | 3.5 KiB | 122 | 97 |
| rzn_cfg.txt | A D | 21-Aug-2025 | 96.9 KiB | 1,159 | 1,143 |
| template.ewd | A D | 21-Aug-2025 | 115.3 KiB | 3,277 | 3,276 |
| template.ewp | A D | 21-Aug-2025 | 94.8 KiB | 2,617 | 2,616 |
| template.eww | A D | 21-Aug-2025 | 178 | 8 | 7 |
README.md
1# EtherKit Development Board BSP Documentation
2
3**English** | **[Chinese](./README_zh.md)**
4
5## Introduction
6
7This document provides the BSP (Board Support Package) documentation for the RT-Thread EtherKit development board. By following the Quick Start section, developers can quickly get started with this BSP and run RT-Thread on the development board.
8
9The main contents are as follows:
10
11- Introduction to the Development Board
12- BSP Quick Start Guide
13
14## Introduction to the Development Board
15
16The EtherKit development board is based on the Renesas RZ/N2L and is designed to facilitate embedded system application development by offering flexible software package and IDE configurations.
17
18The front view of the development board is shown below:
19
20
21
22Key **onboard resources** include:
23
24- MPU: R9A07G084M04GBG, maximum operating frequency of 400MHz, Arm Cortex®-R52 core, 128KB tightly coupled memory (with ECC), 1.5MB internal RAM (with ECC)
25- Debug Interface: Onboard J-Link interface
26- Expansion Interface: One PMOD connector
27
28**More detailed information and tools**
29
30## Peripheral Support
31
32This BSP currently supports the following peripherals:
33
34Here is the translated text in English, keeping the markdown format:
35
36| **EtherCAT Solution** | **Support Status** | **EtherCAT Solution** | **Support Status** |
37| --------------------- | ------------------ | --------------------- | ------------------ |
38| EtherCAT_IO | Supported | EtherCAT_FOE | Supported |
39| EtherCAT_EOE | Supported | EtherCAT_COE | Supported |
40| **PROFINET Solution** | **Support Status** | **Ethernet/IP Solution** | **Support Status** |
41| P-Net (Open source evaluation package supporting ProfiNET slave protocol stack) | Supported | EIP | Supported |
42| **On-chip Peripherals** | **Support Status** | **Components** | **Support Status** |
43| UART | Supported | LWIP | Supported |
44| GPIO | Supported | TCP/UDP | Supported |
45| HWIMER | Supported | MQTT | Supported |
46| IIC | Supported | TFTP | Supported |
47| WDT | Supported | Modbus Master/Slave Protocol | Supported |
48| RTC | Supported | | |
49| ADC | Supported | | |
50| DAC | Supported | | |
51| SPI | Supported | | |
52
53
54## Usage Instructions
55
56Usage instructions are divided into two sections:
57
58- **Quick Start**
59
60 This section is designed for beginners who are new to RT-Thread. By following simple steps, users can run the RT-Thread OS on the development board and observe the experimental results.
61
62- **Advanced Usage**
63
64 This section is for developers who need to use more of the development board's resources within the RT-Thread OS. By configuring the BSP using the ENV tool, additional onboard resources and advanced features can be enabled.
65
66### Quick Start
67
68This BSP currently provides GCC/IAR project support. Below is a guide using the [IAR Embedded Workbench for Arm](https://www.iar.com/products/architectures/arm/iar-embedded-workbench-for-arm/) development environment to run the system.
69
70**Hardware Connection**
71
72Connect the development board to the PC via a USB cable. Use the J-Link interface to download and debug the program.
73
74**Compilation and Download**
75
76- Navigate to the `bsp` directory and use the command `scons --target=iar` to generate the IAR project.
77- Compile: Double-click the `project.eww` file to open the IAR project and compile the program.
78- Debug: In the IAR navigation bar, click `Project -> Download and Debug` to download and start debugging.
79
80**Viewing the Run Results**
81
82After successfully downloading the program, the system will automatically run and print system information.
83
84Connect the corresponding serial port of the development board to the PC. Open the relevant serial port (115200-8-1-N) in the terminal tool. After resetting the device, you can view the RT-Thread output. Enter the `help` command to see the list of supported system commands.
85
86```bash
87 \ | /
88- RT - Thread Operating System
89 / | \ 5.1.0 build Mar 14 2024 18:26:01
90 2006 - 2024 Copyright by RT-Thread team
91
92Hello RT-Thread!
93==================================================
94This is an IAR project in RAM execution mode!
95==================================================
96msh > help
97RT-Thread shell commands:
98clear - clear the terminal screen
99version - show RT-Thread version information
100list - list objects
101backtrace - print backtrace of a thread
102help - RT-Thread shell help
103ps - List threads in the system
104free - Show the memory usage in the system
105pin - pin [option]
106
107msh >
108```
109
110**Application Entry Function**
111
112The entry function for the application layer is located in **src\hal_entry.c** within `void hal_entry(void)`. User source files can be placed directly in the `src` directory.
113
114```c
115void hal_entry(void)
116{
117 rt_kprintf("\nHello RT-Thread!\n");
118 rt_kprintf("==================================================\n");
119 rt_kprintf("This is an IAR project in RAM execution mode!\n");
120 rt_kprintf("==================================================\n");
121
122 while (1)
123 {
124 rt_pin_write(LED_PIN, PIN_HIGH);
125 rt_thread_mdelay(500);
126 rt_pin_write(LED_PIN, PIN_LOW);
127 rt_thread_mdelay(500);
128 }
129}
130```
131
132### Advanced Usage
133
134**Resources and Documentation**
135
136- [Development Board Official Homepage](https://www.renesas.cn/zh/products/microcontrollers-microprocessors/rz-mpus/rzn2l-integrated-tsn-compliant-3-port-gigabit-ethernet-switch-enables-various-industrial-applications)
137- [Development Board Datasheet](https://www.renesas.cn/zh/document/dst/rzn2l-group-datasheet?r=1622651)
138- [Development Board Hardware Manual](https://www.renesas.cn/zh/document/mah/rzn2l-group-users-manual-hardware?r=1622651)
139- [EtherKit_User_Manual](https://github.com/RT-Thread-Studio/sdk-bsp-rzn2l-etherkit/blob/master/docs/EtherKit_User_Manual.pdf)
140- [RZ/N2L MCU Quick Start Guide](https://www.renesas.cn/zh/document/apn/rzt2-rzn2-device-setup-guide-flash-boot-application-note?r=1622651)
141- [RZ/N2L Easy Download Guide](https://www.renesas.cn/zh/document/gde/rzn2l-easy-download-guide?r=1622651)
142- [Renesas RZ/N2L Group](https://www.renesas.cn/zh/document/fly/renesas-rzn2l-group?r=1622651)
143
144**FSP Configuration**
145
146To modify Renesas BSP peripheral configurations or add new peripheral ports, the Renesas [FSP](https://www2.renesas.cn/jp/zh/software-tool/flexible-software-package-fsp#document) configuration tool is required. Please follow the steps outlined below for configuration. For any questions regarding the configuration, please visit the [RT-Thread Community Forum](https://club.rt-thread.org/).
147
1481. [Download the Flexible Software Package (FSP) | Renesas](https://github.com/renesas/rzn-fsp/releases/download/v2.0.0/setup_rznfsp_v2_0_0_rzsc_v2024-01.1.exe), use FSP version 2.0.0.
1492. To add the **"EtherKit Board Support Package"** to FSP, refer to the document [How to Import a BSP](https://www2.renesas.cn/document/ppt/1527171?language=zh&r=1527191).
1503. For guidance on configuring peripheral drivers using FSP, refer to the document: [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-series-using-FSP-configure-peripheral-drivers?id=ra-series-using-fsp-configure-peripheral-drivers).
151
152**ENV Configuration**
153
154- To learn how to use the ENV tool, refer to the [RT-Thread ENV Tool User Manual](https://www.rt-thread.org/document/site/#/development-tools/env/env).
155
156By default, this BSP only enables the UART0 functionality. To use more advanced features such as components, software packages, and more, the ENV tool must be used for configuration.
157
158The steps are as follows:
1591. Open the ENV tool in the `bsp` directory.
1602. Use the `menuconfig` command to configure the project. Save and exit once the configuration is complete.
1613. Run the `pkgs --update` command to update the software packages.
1624. Run the `scons --target=iar` command to regenerate the project.
163
164## Contact Information
165
166If you have any thoughts or suggestions during usage, please feel free to contact us via the [RT-Thread Community Forum](https://club.rt-thread.org/).
167
168## Contribute Code
169
170If you're interested in EtherKit and have some exciting projects you'd like to share, we welcome code 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).
171