sakumisu ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
..
.settings 7703dea25f feat: add cherryecat demo 4 months ago
board ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
figures 7703dea25f feat: add cherryecat demo 4 months ago
packages ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
rzn 7703dea25f feat: add cherryecat demo 4 months ago
rzn_cfg 7703dea25f feat: add cherryecat demo 4 months ago
rzn_gen ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
script 7703dea25f feat: add cherryecat demo 4 months ago
src 7703dea25f feat: add cherryecat demo 4 months ago
.api_xml 7703dea25f feat: add cherryecat demo 4 months ago
.config 7703dea25f feat: add cherryecat demo 4 months ago
.cproject 7703dea25f feat: add cherryecat demo 4 months ago
.gitignore 7703dea25f feat: add cherryecat demo 4 months ago
.project 7703dea25f feat: add cherryecat demo 4 months ago
.secure_azone 7703dea25f feat: add cherryecat demo 4 months ago
.secure_rzone 7703dea25f feat: add cherryecat demo 4 months ago
.secure_xml 7703dea25f feat: add cherryecat demo 4 months ago
Kconfig 7703dea25f feat: add cherryecat demo 4 months ago
README.md 7703dea25f feat: add cherryecat demo 4 months ago
README_zh.md 7703dea25f feat: add cherryecat demo 4 months ago
SConscript 7703dea25f feat: add cherryecat demo 4 months ago
SConstruct 7703dea25f feat: add cherryecat demo 4 months ago
buildinfo.ipcf 7703dea25f feat: add cherryecat demo 4 months ago
buildinfo.json 7703dea25f feat: add cherryecat demo 4 months ago
configuration.xml ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
envsetup.sh 7703dea25f feat: add cherryecat demo 4 months ago
memory_regions.ld 7703dea25f feat: add cherryecat demo 4 months ago
mklinks.bat 7703dea25f feat: add cherryecat demo 4 months ago
mklinks.sh 7703dea25f feat: add cherryecat demo 4 months ago
ozone_scons.jdebug 7703dea25f feat: add cherryecat demo 4 months ago
project.ewd 7703dea25f feat: add cherryecat demo 4 months ago
project.ewp ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
project.ewt ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
project.eww 7703dea25f feat: add cherryecat demo 4 months ago
rtconfig.h 7703dea25f feat: add cherryecat demo 4 months ago
rtconfig.py 7703dea25f feat: add cherryecat demo 4 months ago
rzn_cfg.txt ddb703182e update(cherryecat): remove timer1 and bump cherryecat version to v1.0.0 4 months ago
template.ewd 7703dea25f feat: add cherryecat demo 4 months ago
template.ewp 7703dea25f feat: add cherryecat demo 4 months ago
template.eww 7703dea25f feat: add cherryecat demo 4 months ago

README.md

CherryECAT Driver Usage Instructions

English | 中文

Introduction

This project provides cherryecat demo.

Hardware Connection

To use Ethernet, connect the development board to any one of the three network ports using an Ethernet cable, and the other end should be connected to a network switch that has internet access.

FSP Configuration Instructions

Open the project configuration file configuration.xml and add the r_gamc stack:

image-20241126104408737

Next, click on g_ether0 Ethernet, and configure the interrupt callback function to user_ether0_callback:

image-20241126104422910

Now configure the PHY settings. Select g_ether_phy0, set the common configuration to "User Own Target", change the PHY LSI address to 1 (refer to the schematic for the exact address), and set the PHY initialization callback function to ether_phy_targets_initialize_rtl8211_rgmii(). Also, set the MDIO to GMAC.

image-20241126104437432

Next, configure g_ether_selector0, set the Ethernet mode to "Switch Mode", set the PHY link to "Default Active-Low", and choose "RGMII" for the PHY interface mode.

image-20241126104519290

Configure the Ethernet pin parameters and select the operating mode to RGMII:

image-20241126104533098

Finally, configure ETHER_GMAC:

image-20241126104603633

RT-Thread Studio Configuration

Return to the Studio project, and configure RT-Thread Settings. Click on "Hardware", find the chip device driver, and enable Ethernet:

image-20241126104852383

Running Results

cherryecat cherryecat cherryecat cherryecat cherryecat