Yuqiang Wang e1498cabc9 SDK build (#47) 5 месяцев назад
..
.settings 4795f3d206 更新fsp为2.2.0 6 месяцев назад
board 4795f3d206 更新fsp为2.2.0 6 месяцев назад
figures e9ee0a7ce5 add filesystem project and public v1.2.1 9 месяцев назад
packages 4795f3d206 更新fsp为2.2.0 6 месяцев назад
rzn 0e9a0dfdbd fix iar link source 6 месяцев назад
rzn_cfg 0e9a0dfdbd fix iar link source 6 месяцев назад
rzn_gen 0e9a0dfdbd fix iar link source 6 месяцев назад
script 4795f3d206 更新fsp为2.2.0 6 месяцев назад
src e9ee0a7ce5 add filesystem project and public v1.2.1 9 месяцев назад
.api_xml e7e2582a7c EtherKit 示例工程添加 1 год назад
.config 4795f3d206 更新fsp为2.2.0 6 месяцев назад
.cproject 4795f3d206 更新fsp为2.2.0 6 месяцев назад
.gitignore 43669c1c97 Fixed some known issues 1 год назад
.project e7e2582a7c EtherKit 示例工程添加 1 год назад
.secure_azone e7e2582a7c EtherKit 示例工程添加 1 год назад
.secure_rzone 4795f3d206 更新fsp为2.2.0 6 месяцев назад
.secure_xml 4795f3d206 更新fsp为2.2.0 6 месяцев назад
Kconfig 4795f3d206 更新fsp为2.2.0 6 месяцев назад
README.md e1498cabc9 SDK build (#47) 5 месяцев назад
README_zh.md e1498cabc9 SDK build (#47) 5 месяцев назад
SConscript 0e9a0dfdbd fix iar link source 6 месяцев назад
SConstruct e7e2582a7c EtherKit 示例工程添加 1 год назад
buildinfo.ipcf 0e9a0dfdbd fix iar link source 6 месяцев назад
buildinfo.json 4795f3d206 更新fsp为2.2.0 6 месяцев назад
configuration.xml 4795f3d206 更新fsp为2.2.0 6 месяцев назад
envsetup.sh e7e2582a7c EtherKit 示例工程添加 1 год назад
mklinks.bat e7e2582a7c EtherKit 示例工程添加 1 год назад
mklinks.sh e7e2582a7c EtherKit 示例工程添加 1 год назад
ozone_scons.jdebug 384e7a31df 修复scons固件无法运行的问题,添加ozone调试脚本 1 год назад
project.ewd 0e9a0dfdbd fix iar link source 6 месяцев назад
project.ewp 0e9a0dfdbd fix iar link source 6 месяцев назад
project.ewt 0e9a0dfdbd fix iar link source 6 месяцев назад
project.eww e7e2582a7c EtherKit 示例工程添加 1 год назад
rtconfig.h 4795f3d206 更新fsp为2.2.0 6 месяцев назад
rtconfig.py 384e7a31df 修复scons固件无法运行的问题,添加ozone调试脚本 1 год назад
rzn_cfg.txt 4795f3d206 更新fsp为2.2.0 6 месяцев назад
template.ewd 0e9a0dfdbd fix iar link source 6 месяцев назад
template.ewp 0e9a0dfdbd fix iar link source 6 месяцев назад
template.eww e7e2582a7c EtherKit 示例工程添加 1 год назад

README.md

RS485 Driver Usage Instructions

English | 中文

Introduction

This example demonstrates how to use an RS485 device on the EtherKit.

Hardware Overview

image-20241126102525956

FSP Configuration

Open the FSP tool, create a new Stack, and select r_sci_uart5. The specific configuration details are as follows:

image-20250421150150683

Example Project Description

The RS485 driver is initialized, and characters received from the RS485 serial terminal are printed to the Finsh terminal, while being echoed back to the RS485 terminal.

Build & Download

  • RT-Thread Studio: Download the EtherKit resource pack from the RT-Thread Studio package manager, then create a new project and compile it.
  • IAR: First, double-click mklinks.bat to generate links for the rt-thread and libraries folders. Then, use Env to generate the IAR project. Finally, double-click project.eww to open the IAR project and compile it.

Once compiled, connect the development board’s JLink interface to the PC, and download the firmware to the development board.

Running Result

Run the rs485_sample command in the serial console, and open the RS485 serial terminal to view the received data:

image-20250421150911150

image-20250421150932481