Wiznet makers

Grace_Koo

Published September 26, 2024 ©

0 UCC

1 WCC

0 VAR

0 Contests

0 Followers

0 Following

W55RP20-EVB-PICO Loopback example

Execute the loopback example in PICO-C.

COMPONENTS Hardware components

WIZnet - W55RP20-EVB-Pico

x 1


PROJECT DESCRIPTION

Execute the loopback code from the PICO-C examples in the WIZnet-ioNIC GitHub repository. This contents covers the setup and execution results.

https://github.com/WIZnet-ioNIC/WIZnet-PICO-C

Hardware Requirements

  • W55RP20-EVB-PICO
  • Desktop or Laptop
  • USB Type-C Cable

Software Tools

  • Visual Studio Code
  • Serial Terminal : Tera Term
  • TCP Server / TCP Client / UDP : Hercules

Setup board

Need to set up the board in the 'WIZnet-PICO-C/CMakeLists.txt' file.

Activate the 8th line in this file by setting 'set(BOARD_NAME W55RP20_EVB_PICO)'.

WIZnet-PICO-C/CMakeLists.txt

Setup Network Info

WIZnet-PICO-C\examples\loopback\w5x00_loopback.c

Set up the desired network information.
Set the port to be used.

Run

The basic example runs a TCP server. To use a TCP client or UDP, refer to the functions in the path below and make the necessary modifications.

WIZnet-PICO-C\libraries\ioLibrary_Driver\Application\loopback\loopback.c

some parts of the UDP functions in the loopback.c
some parts of the TCP client functions in the loopback.c

1. TCP server

The following is the execution screen of the TCP server example.

Loopback Screen

 

connected to the W55RP20 using another client.

 

 

2. TCP client

You need to modify the existing example to function as a TCP client.

The destIP of the server to connect to has been defined.

w5x00_loopback.c

The following is the execution screen of the TCP client example.

Loopback Screen

 

 

connected to the W55RP20 using another TCP server.

 

 

 

 

when the server connection is lost.

3. UDP

w5x00_loopback.c

The following is the execution screen of the TCP client example.

Loopback Screen

 

connected to the W55RP20 using another UDP.

 

 

 

Documents
  • WIZnet-PICO-C

Comments Write