Skip to content

Latest commit

 

History

History
106 lines (78 loc) · 4.09 KB

README.md

File metadata and controls

106 lines (78 loc) · 4.09 KB

[ W55RP20 Test ]

Project for Various Tests on W55RP20

Quick Start Firmware

Explore the basic functions of the W55RP20 through shell-based commands.
image

W5500 Initialization

Use the following commands to initialize the W5500 in PIO mode on the RP2040. image

/bin/w5500 init spipio 32
/bin/w5500 init spipio 4
/bin/w5500 init spinormal 8 (N/A)

Basic SPI Communication with W5500

Use the following commands to read and write to the W5500 registers or check basic information. Below is an example of writing a MAC address directly to the MAC Address register of the W5500. image

Integration with lwIP

Use the following commands to integrate with lwIP using MAC Raw mode. image

Checking W5500 Registers

Use the following commands to check the values of the W5500's Common and Socket registers. The updates occur approximately every 100ms, and you can observe changes in the Ethernet PHY link status through simple actions like plugging/unplugging the LAN cable. image image

Checking RP2040 Memory Map

Use the following commands to check the memory map of the RP2040. image

/bin/pico memory
/bin/pico memory 0 00000000 00000100
/bin/pico memory 1 40000000 40010000
/bin/pico memory 2 40000000 40010000

Checking RP2040 GPIO

Use the following commands to check the status of the RP2040's GPIO or perform simple tests. image

W55RP20 iPerf Test

Use the following commands to check throughput of W55RP20 with iPerf-tool. {60D5EABE-E1B0-4404-886E-94D4C0E976D0} {C90B6BE1-3A41-4411-A1A8-B7400E8B3E0E}

W5500 MacRaw mode

Use the following commands to send or receive raw packet data in W5500 MacRaw mode. Below is an example of testing W5500's MacRaw mode.
image

The packet sent above was successfully received on the PC.
image

The packet was created using Colasoft Packet Builder. image

The following is a screen showing packet data received in W5500's MacRaw mode.
image

Useful CLI Commands

/bin/reboot

/bin/w5500 init spipio 32
/bin/w5500 init spipio 4
/bin/w5500 init spinormal 8 (X)

/bin/w5500 info
/bin/w5500 readbuff 0009 16
/bin/w5500 writebuff 0009 0008dcaabbee

/bin/w5500 register

/bin/w5500 lwip 

/bin/pico memory
/bin/pico memory 0 0 0 
/bin/pico memory 0 00000000 00000100
/bin/pico memory 1 40000000 40010000
/bin/pico memory 2 40000000 40010000

/bin/pico pins
/bin/pico gpiotest

/bin/pico spi c1,cd3,010203

/bin/w5500 macraw socket
/bin/w5500 macraw send
ffffffffffff 0008dc112233 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bin/w5500 macraw recv
/bin/w5500 macraw close