Soohwan Kim
Published © Apache-2.0

MBED RPC with W5500 Ethernet Shield

This post shows how to use mbed RPC with W5500 Ethernet Shield and how to port an Ethernet application used lwIP to W5500Interface.

BeginnerFull instructions provided1,370

Things used in this project

Hardware components

W5500
WIZnet W5500
×1

Story

Read more

Code

Code

Plain text
      /*  Use EthernetInterface
       *EthernetInterface eth;
       *if(eth.init())
       *int ret = eth.init("192.168.77.34", "255.255.255.0", "192.168.77.1");    
       */
      /* ----- Use W5500 Ethernet Shied -----*/
      SPI spi(D11, D12, D13);      /* mosi, miso, sclk */
      //spi.frequency(12500000); /* Optional : set proper SPI clock */
      EthernetInterface eth(&spi, D10, D9); /* spi, cs, reset(dummy) */
      ...
      /* ----- Use W5500 Ethernet Shied -----*/

Code

Plain text
      /*  Use EthernetInterface
       *EthernetInterface eth;
       *if(eth.init())
       *int ret = eth.init("192.168.77.34", "255.255.255.0", "192.168.77.1");    
       */
      /* ----- Use W5500 Ethernet Shied -----*/
      SPI spi(D11, D12, D13);      /* mosi, miso, sclk */
      //spi.frequency(12500000); /* Optional : set proper SPI clock */
      EthernetInterface eth(&spi, D10, D9); /* spi, cs, reset(dummy) */
      ...
      /* ----- Use W5500 Ethernet Shied -----*/

Credits

Soohwan Kim

Soohwan Kim

6 projects • 7 followers
Embedded System, ARM mbed, Arduino, TCP/IP, SoC, Open Source Hardware

Comments