sakumisu 7703dea25f feat: add cherryecat demo 4 luni în urmă
..
.settings e1498cabc9 SDK build (#47) 7 luni în urmă
board e1498cabc9 SDK build (#47) 7 luni în urmă
figures e1498cabc9 SDK build (#47) 7 luni în urmă
packages e1498cabc9 SDK build (#47) 7 luni în urmă
rzn e1498cabc9 SDK build (#47) 7 luni în urmă
rzn_cfg e1498cabc9 SDK build (#47) 7 luni în urmă
rzn_gen e1498cabc9 SDK build (#47) 7 luni în urmă
script e1498cabc9 SDK build (#47) 7 luni în urmă
src e1498cabc9 SDK build (#47) 7 luni în urmă
.api_xml e1498cabc9 SDK build (#47) 7 luni în urmă
.config e1498cabc9 SDK build (#47) 7 luni în urmă
.cproject e1498cabc9 SDK build (#47) 7 luni în urmă
.gitignore e1498cabc9 SDK build (#47) 7 luni în urmă
.project e1498cabc9 SDK build (#47) 7 luni în urmă
.secure_azone e1498cabc9 SDK build (#47) 7 luni în urmă
.secure_rzone e1498cabc9 SDK build (#47) 7 luni în urmă
.secure_xml e1498cabc9 SDK build (#47) 7 luni în urmă
Kconfig e1498cabc9 SDK build (#47) 7 luni în urmă
README.md e1498cabc9 SDK build (#47) 7 luni în urmă
README_zh.md e1498cabc9 SDK build (#47) 7 luni în urmă
SConscript e1498cabc9 SDK build (#47) 7 luni în urmă
SConstruct e1498cabc9 SDK build (#47) 7 luni în urmă
buildinfo.ipcf e1498cabc9 SDK build (#47) 7 luni în urmă
buildinfo.json e1498cabc9 SDK build (#47) 7 luni în urmă
configuration.xml e1498cabc9 SDK build (#47) 7 luni în urmă
envsetup.sh e1498cabc9 SDK build (#47) 7 luni în urmă
mklinks.bat e1498cabc9 SDK build (#47) 7 luni în urmă
mklinks.sh e1498cabc9 SDK build (#47) 7 luni în urmă
ozone_scons.jdebug e1498cabc9 SDK build (#47) 7 luni în urmă
project.ewd e1498cabc9 SDK build (#47) 7 luni în urmă
project.ewp 7703dea25f feat: add cherryecat demo 4 luni în urmă
project.ewt e1498cabc9 SDK build (#47) 7 luni în urmă
project.eww e1498cabc9 SDK build (#47) 7 luni în urmă
rtconfig.h e1498cabc9 SDK build (#47) 7 luni în urmă
rtconfig.py e1498cabc9 SDK build (#47) 7 luni în urmă
rzn_cfg.txt e1498cabc9 SDK build (#47) 7 luni în urmă
template.ewd e1498cabc9 SDK build (#47) 7 luni în urmă
template.ewp e1498cabc9 SDK build (#47) 7 luni în urmă
template.eww e1498cabc9 SDK build (#47) 7 luni în urmă

README.md

Ethernet Driver Usage Instructions

English | 中文

Introduction

This project provides basic Ethernet functionalities, including ping, tftp, ntp, and iperf.

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

Ethernet IP Experiment Results

After flashing the code to the development board, open the serial terminal to view the logs:

image-20250208095647738