Yuqiang Wang e1498cabc9 SDK build (#47) 9 ماه پیش
..
.settings 4795f3d206 更新fsp为2.2.0 10 ماه پیش
board 4795f3d206 更新fsp为2.2.0 10 ماه پیش
figures e9ee0a7ce5 add filesystem project and public v1.2.1 1 سال پیش
packages 4795f3d206 更新fsp为2.2.0 10 ماه پیش
rzn 0e9a0dfdbd fix iar link source 9 ماه پیش
rzn_cfg 0e9a0dfdbd fix iar link source 9 ماه پیش
rzn_gen 0e9a0dfdbd fix iar link source 9 ماه پیش
script 4795f3d206 更新fsp为2.2.0 10 ماه پیش
src e9ee0a7ce5 add filesystem project and public v1.2.1 1 سال پیش
.api_xml e7e2582a7c EtherKit 示例工程添加 1 سال پیش
.config 4795f3d206 更新fsp为2.2.0 10 ماه پیش
.cproject 4795f3d206 更新fsp为2.2.0 10 ماه پیش
.gitignore 43669c1c97 Fixed some known issues 1 سال پیش
.project e7e2582a7c EtherKit 示例工程添加 1 سال پیش
.secure_azone e7e2582a7c EtherKit 示例工程添加 1 سال پیش
.secure_rzone 4795f3d206 更新fsp为2.2.0 10 ماه پیش
.secure_xml 4795f3d206 更新fsp为2.2.0 10 ماه پیش
Kconfig 4795f3d206 更新fsp为2.2.0 10 ماه پیش
README.md e1498cabc9 SDK build (#47) 9 ماه پیش
README_zh.md e1498cabc9 SDK build (#47) 9 ماه پیش
SConscript 0e9a0dfdbd fix iar link source 9 ماه پیش
SConstruct e7e2582a7c EtherKit 示例工程添加 1 سال پیش
buildinfo.ipcf 0e9a0dfdbd fix iar link source 9 ماه پیش
buildinfo.json 4795f3d206 更新fsp为2.2.0 10 ماه پیش
configuration.xml 4795f3d206 更新fsp为2.2.0 10 ماه پیش
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 9 ماه پیش
project.ewp 0e9a0dfdbd fix iar link source 9 ماه پیش
project.ewt 0e9a0dfdbd fix iar link source 9 ماه پیش
project.eww e7e2582a7c EtherKit 示例工程添加 1 سال پیش
rtconfig.h 4795f3d206 更新fsp为2.2.0 10 ماه پیش
rtconfig.py 384e7a31df 修复scons固件无法运行的问题,添加ozone调试脚本 1 سال پیش
rzn_cfg.txt 4795f3d206 更新fsp为2.2.0 10 ماه پیش
template.ewd 0e9a0dfdbd fix iar link source 9 ماه پیش
template.ewp 0e9a0dfdbd fix iar link source 9 ماه پیش
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