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

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