|
4 months ago | |
---|---|---|
.. | ||
.settings | 6 months ago | |
board | 4 months ago | |
figures | 9 months ago | |
rzn | 6 months ago | |
rzn_cfg | 9 months ago | |
rzn_gen | 9 months ago | |
script | 6 months ago | |
src | 9 months ago | |
.api_xml | 9 months ago | |
.config | 5 months ago | |
.cproject | 6 months ago | |
.project | 6 months ago | |
.secure_azone | 9 months ago | |
.secure_xml | 9 months ago | |
Kconfig | 9 months ago | |
README.md | 9 months ago | |
README_zh.md | 9 months ago | |
SConscript | 6 months ago | |
SConstruct | 9 months ago | |
buildinfo.ipcf | 9 months ago | |
configuration.xml | 9 months ago | |
memory_regions.icf | 9 months ago | |
project.ewd | 9 months ago | |
project.ewp | 9 months ago | |
project.ewt | 9 months ago | |
project.eww | 9 months ago | |
rtconfig.h | 9 months ago | |
rtconfig.py | 9 months ago | |
rzn_cfg.txt | 9 months ago | |
template.ewd | 9 months ago | |
template.ewp | 9 months ago | |
template.eww | 9 months ago |
English | 中文
This document provides the BSP (Board Support Package) for the Renesas RSK-RZN2L development board. By following the Quick Start Guide, developers can quickly get started with the BSP and run RT-Thread on the development board.
The main contents include:
The RSK-RZN2L MCU evaluation board is based on Renesas RZ/N2L and is designed for developing embedded system applications with flexible software package configuration and IDE support.
The front appearance of the development board is shown below:
The commonly used onboard resources for this development board are as follows:
More detailed information and tools
The current peripheral support in this BSP is as follows:
On-chip Peripheral | Support Status | Remarks |
---|---|---|
UART | Supported | UART0 is the default log output port |
GPIO | Supported | |
HWIMER | Supported | |
IIC | Supported | |
WDT | Supported | |
RTC | Supported | |
ADC | Supported | |
DAC | Supported | |
SPI | Supported | |
FLASH | Supported | |
PWM | Supported | |
CAN | Supported | |
ETH | Supported | |
More updates... |
The instructions are divided into the following two sections:
This section is for beginners who are new to RT-Thread. By following simple steps, you can run the RT-Thread OS on this development board and observe the experimental results.
This section is for developers who want to use more resources on the development board with RT-Thread. Using the ENV tool to configure the BSP, you can enable more onboard resources and achieve more advanced features.
Currently, this BSP only provides an IAR project. Below is an example of how to get the system running using the IAR Embedded Workbench for Arm development environment.
Hardware Connection
Connect the development board to the PC using a USB data cable, and use the J-Link interface to download and debug programs.
Compilation and Download
scons --target=iar
to generate the IAR project.project.eww
file to open the IAR project and compile the program.Project->Download and Debug
in the IAR toolbar to download and start debugging.View Running Results
After successfully downloading the program, the system will run automatically and print system information.
Connect the corresponding serial port of the development board to the PC. Open the corresponding serial port in a terminal tool (115200-8-1-N). After resetting the device, you can see the RT-Thread output. Enter the help
command to view the supported commands in the system.
\ | /
- RT - Thread Operating System
/ | \ 5.1.0 build Mar 14 2024 18:26:01
2006 - 2024 Copyright by RT-Thread team
Hello RT-Thread!
==================================================
This is a iar project which mode is xspi0 execution!
==================================================
msh >help
RT-Thread shell commands:
clear - clear the terminal screen
version - show RT-Thread version information
list - list objects
backtrace - print backtrace of a thread
help - RT-Thread shell help
ps - List threads in the system
free - Show the memory usage in the system
pin - pin [option]
msh >
Application Entry Function
The application layer's entry function is in src\hal_entry.c
in the void hal_entry(void)
function. User source files can be placed directly in the src
directory.
#define LED_PIN BSP_IO_PORT_18_PIN_2 /* Onboard LED pins */
void hal_entry(void)
{
rt_kprintf("\nHello RT-Thread!\n");
rt_kprintf("==================================================\n");
rt_kprintf("This is a iar project which mode is xspi0 execution!\n");
rt_kprintf("==================================================\n");
while (1)
{
rt_pin_write(LED_PIN, PIN_HIGH);
rt_thread_mdelay(500);
rt_pin_write(LED_PIN, PIN_LOW);
rt_thread_mdelay(500);
}
}
Resources and Documentation
FSP Configuration
If you need to modify Renesas BSP peripheral configurations or add new peripheral ports, you will need to use the Renesas FSP configuration tool. Please follow the steps below. If you encounter any issues during the configuration, feel free to ask on the RT-Thread Community Forum.
ENV Configuration
By default, this BSP only enables UART0. To use more advanced features like components, software packages, etc., you need to configure the BSP using the ENV tool.
Steps:
menuconfig
command to configure the project. After configuration, save and exit.pkgs --update
command to update the software packages.scons --target=iar
command to regenerate the project.If you have any thoughts or suggestions during usage, feel free to contact us via the RT-Thread Community Forum.
If you are interested in the RSK-RZN2L and have some exciting projects to share with the community, we welcome your code contributions. You can refer to How to Contribute Code to RT-Thread.