Skip to content

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

Components

Hardware components

x 1

Software Apps and online services

x 1


x 1


x 1


Project description

#Raspberry Pi Pico is a little different from the existing #Raspberry Pi.

Raspberry Pi pico is target might be a sensor.

?

There are basic interfaces that can be attached to the MCU: UART, SPI, I2C, GPIO USB, PWM, and there are also things that can control the MCU such as dma, watchdog, timer, etc.

In order to use Pico, the example and SDK code must be present together, so these two are provided together.

Basically, you can check the Raspberry Pi Pico's Get Started documentation.

?

You can follow what I posted

I worked in?C/C++ + Window10 environment

In Korean :

-?https://blog.naver.com/roruca/222253845980

-?https://blog.naver.com/roruca/222265404700

in English :

-?https://www.hackster.io/irinakim1225/windows10-environment-building-for-raspberry-pi-pico-c-c-2dc9f3

You can check the basic LED driving through the environment building link..

.

There is an SPI interface, and the Raspberry Pi pico doesn't have a network-related chip such as Ethernet or Wifi, so I wanted to do Ethernet communication programming.

First, in the pico-example example, there are about 4 SPI folders as shown below.

(left) Before change (right) After change
(left) Before change (right) After change

So, I created the W5500_SPI folder and added w5500_spi to CMakeList.txt in the SPI folder.

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

IoLibrary of WIznet

https://github.com/Wiznet/ioLibrary_Driver

Only files used in W5500 were added in ioLibrary provided by Wiznet.

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

Below is the SPI and Reset pinmap,

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

Below is the change of Read/Write byte operation.

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++

Below is a video of compilation, firmware upload, and operation demonstration using Cmake.

Currently, I sent a pull request to the Pico-example provided by raspberry, and I am ping pong hard, and I think I will be able to enter the basic example sooner or later.

How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++
How to add Ethernet(W5500) to Raspberry Pi Pico ? C/C++
[embed]https://www.youtube.com/watch?v=MDdt03a3NQU[/embed]

Documents

Comments

Similar projects you might like

Comments