|
5 months ago | |
---|---|---|
.. | ||
.settings | 1 year ago | |
board | 9 months ago | |
docs | 1 year ago | |
ra | 1 year ago | |
ra_cfg | 1 year ago | |
ra_gen | 1 year ago | |
script | 1 year ago | |
src | 1 year ago | |
.api_xml | 1 year ago | |
.config | 5 months ago | |
.cproject | 1 year ago | |
.gitignore | 1 year ago | |
.ignore_format.yml | 1 year ago | |
.project | 1 year 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.gpdsc | 1 year ago | |
configuration.xml | 1 year ago | |
memory_regions.scat | 1 year ago | |
project.uvoptx | 1 year ago | |
project.uvprojx | 1 year ago | |
rtconfig.h | 1 year ago | |
rtconfig.py | 1 year ago | |
template.uvoptx | 1 year ago | |
template.uvprojx | 1 year ago |
English | 中文
The 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.
The Vision-Board comes equipped with various onboard resources, including:
The BSP currently supports several peripherals as listed below:
On-Chip Peripheral | Support Status | Remarks |
---|---|---|
UART | Supported | UART9 is the default log output port |
GPIO | Supported | |
USB | Supported | TinyUSB |
Camera | Supported | ov2640, ov7725, ov7670... |
SDHC | Supported | 1-bit, 4-bit |
ADC | Supported | |
DAC | Supported | |
SPI | Supported | |
PWM | Supported | |
RTC | Supported | |
FLASH | Supported | |
WDT | Supported | |
I2C | Supported | |
Wi-Fi | Supported | RW007 |
The 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.
The 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).
#define LED_PIN BSP_IO_PORT_01_PIN_02 /* Onboard LED pins */
In the hal_entry
function, this pin is configured as an output. The LED is toggled periodically (every 500 milliseconds) in the while loop.
void hal_entry(void)
{
rt_kprintf("\nHello RT-Thread!\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);
}
}
Usage instructions are divided into two sections:
This 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.
This BSP provides an MDK5 project. Compile and download the program using the MDK5 development environment.
Compile and Download
Open the current BSP using the ENV tool to set the toolchain and its corresponding path. Then, execute the scons
command to compile.
set RTT_CC=llvm-arm
set RTT_EXEC_PATH=D:\Progrem\LLVMEmbeddedToolchainForArm-17.0.1-Windows-x86_64\bin
execute the scons
command to compile.
scons
Observing the Program Execution
Once the program is downloaded successfully, the system will initiate automatically, displaying system information.
Connect 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.
[D/main] sdram init success, mapped at 0x68000000, size is 33554432 bytes, data width is 16
\ | /
- RT - Thread Operating System
/ | \ 5.1.0 build Mar 5 2024 13:57:23
2006 - 2024 Copyright by RT-Thread team
Hello RT-Thread!
msh >
msh >
Resources and Documentation
ENV Configuration
By 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.
The steps are as follows:
*FSP Configuration
The BSP repository currently enables the minimum configuration by default. Users can enable ENV peripheral configurations through the following steps:
scons --target=mdk5'
Command.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.Inside FSP, you'll find some pre-configured peripherals. Click the Generate Project Content
button to generate the required driver files.
If you have any ideas or suggestions during usage, we encourage you to contact us via the RT-Thread Community Forum.
This is the SDK repository for Vision Board: 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.
If 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.