|
4 weeks ago | |
---|---|---|
.. | ||
.settings | 1 year ago | |
board | 1 year ago | |
figures | 1 year ago | |
rzt | 1 year ago | |
rzt_cfg | 1 year ago | |
rzt_gen | 1 year ago | |
script | 1 year ago | |
src | 1 year ago | |
.api_xml | 1 year ago | |
.config | 5 months ago | |
.secure_azone | 1 year ago | |
.secure_xml | 1 year ago | |
Kconfig | 1 year ago | |
README.md | 1 year ago | |
README_zh.md | 1 year ago | |
SConscript | 1 year ago | |
SConstruct | 1 year ago | |
buildinfo.ipcf | 1 year ago | |
configuration.xml | 1 year ago | |
memory_regions.icf | 1 year ago | |
project.custom_argvars | 1 year ago | |
project.ewd | 1 year ago | |
project.ewp | 4 weeks ago | |
project.ewt | 1 year ago | |
project.eww | 1 year ago | |
rtconfig.h | 1 year ago | |
rtconfig.py | 1 year ago | |
template.ewd | 1 year ago | |
template.ewp | 1 year ago | |
template.eww | 1 year ago |
English | 中文
This document provides the Board Support Package (BSP) guide for the Renesas RSK-RZT2M development board. By reading the quick start section, developers can quickly get started with this BSP and run RT-Thread on the development board.
The main contents are as follows:
The RSK-RZT2M MCU evaluation board, based on the Renesas RZ/T2M development, is designed to assist users in evaluating the features of the RA6M4 MCU group and developing embedded system applications through flexible configuration of software packages and IDEs.
The front appearance of the development board is as follows:
The commonly used on-board resources of this development board are as follows:
More detailed information and tools
The current support status of peripherals 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 | |
I2C | Not supported | |
WDT | Not supported | |
RTC | Not supported | |
ADC | Not supported | |
DAC | Not supported | |
SPI | Not supported | |
FLASH | Not supported | |
PWM | Not supported | |
CAN | Not supported | |
ETH | Not supported | |
More to come... |
The usage guide is divided into the following two sections:
This section is prepared for beginners who are new to RT-Thread. Follow simple steps to run the RT-Thread operating system on this development board and see experimental results.
This section is prepared for developers who need to utilize more development board resources on the RT-Thread operating system. By using the ENV tool to configure the BSP, more on-board resources can be enabled to achieve more advanced functionalities.
Currently, this BSP only provides an IAR project. Below is an example of how to get the system up and running using 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 for downloading and debugging programs.
Compilation and Download
scons --target=iar
to generate an IAR project.Project->Download and Debug
on the top-left navigation bar of IAR to download and start debugging.Viewing Execution Results
After successfully downloading the program, the system will automatically run and print system information.
Connect the corresponding serial port of the development board to the PC, open the terminal tool, and select the corresponding serial port (115200-8-1-N). After resetting the device, you can see the output information from RT-Thread. 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 ram 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 entry function of the application layer is in src\hal_entry.c under void hal_entry(void)
. User-written source files can be directly placed in the src directory.
void hal_entry(void)
{
rt_kprintf("\nHello RT-Thread!\n");
rt_kprintf("==================================================\n");
rt_kprintf("This is a iar project which mode is ram 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);
}
}
Documentation and Resources
FSP Configuration
To modify Renesas BSP peripheral configurations or add new peripheral ports, the Renesas Flexible Software Package (FSP) configuration tool is required. Please follow the steps below for configuration. For any configuration issues, feel free to ask in the RT-Thread Community Forum.
Download Flexible Software Package (FSP) | Renesas, please use FSP version 1.3.0.
Refer to the document How to import the board support package on how to add the "RSK-RZT2M board support package" to FSP.
Refer to the document: RA Series Using FSP to Configure Peripheral Drivers.
ENV Configuration
This BSP only enables the UART1 function by default. If you need to use more advanced features such as components, software packages, etc., you need to configure it using the ENV tool.
The steps are as follows:
menuconfig
command to configure the project, save and exit after configuration.pkgs --update
command to update the software packages.scons --target=iar
command to regenerate the project.If you have any ideas or suggestions during use, we recommend contacting us through the RT-Thread Community Forum.
If you are interested in RSK-RZT2M and have some interesting projects to share with everyone, feel free to contribute code to us. You can refer to How to Contribute to RT-Thread Code.