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

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