IoT Base Platform With RaspberryPi, WIZ850io : Ethernet Module Driver


1,956

3

5

S/W Engineer for Open Source Platform.

I know RaspberryPi platform for IoT. Recently WIZ850io is announced by WIZnet. So I implemented a RaspberryPi application by Ethernet SW modification because I can handle a source code easily. You can test Ethernet Module Driver through RaspberryPi and WIZ850io. Please refer to the following step.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Prepare Materials

Please refer to the following.

1. Raspberry Pi 3 Starter Kit

2. WIZ850io

3. UART2USB adapter

4. LAN cable

5. USB cable

Step 2: Hardware Connection

Please connect an USB, LAN cable, WIZ850io and UART2USB adapter.

You can get more HW info by the following site.

https://pinout.xyz/pinout/spi

http://wizwiki.net/wiki/doku.php?id=products:wiz850io:start

Step 3: Prepare Development Environment

Step 4: Software

Linux Kernel : WIZnet Ethernet Module Driver for W5500

https://github.com/borg42/w5x00

Step 5: How to Run : Modification

I modified the source code to fit Raspberry Pi.

Step 6: How to Run : Result

I copied w5x00 module into Raspberry Pi.

Be the First to Share

    Recommendations

    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest

    5 Discussions

    0
    None
    sergi_jini

    2 months ago

    Hello. thanks for the post.
    I am afraid I am missing some piece, which is not mentioned here. I am trying these steps on RPI zero and W5500.

    When trying to compile getting below error:

    ~/w5x00-master $ sudo ./compile.sh
    make -C /home/pi/w5x00-master SUBDIRS=/home/pi/w5x00-master modules
    make[1]: Entering directory '/home/pi/w5x00-master'
    make[1]: *** No rule to make target 'modules'. Stop.
    make[1]: Leaving directory '/home/pi/w5x00-master'
    Makefile:12: recipe for target 'default' failed
    make: *** [default] Error 2

    Looking inside the Make file (I replaced your folder tree with mine)
    obj-m := w5x00.o
    w5x00-objs := module.o netdrv.o dev.o queue.o

    #KDIR := /usr/src/linux-panda
    #KDIR := /home/olaf/ee/red-brick/image/source/red-brick-linux-sunxi
    #KDIR := /home/bingdo/project/raspberrypi_linux
    KDIR := /home/pi/w5x00-master
    PWD := $(shell pwd)

    default :
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

    clean :
    rm -rf *.o
    rm -rf *.ko
    rm -rf *.mod.*
    rm -rf .w5x00*
    rm -rf Module.symvers
    rm -rf modules.order
    rm -rf .tmp_versions

    and the target folder itself:
    -rwxr-xr-x 1 pi pi 168 Sep 29 2017 compile.sh
    -rw-r--r-- 1 pi pi 33723 Oct 10 2017 dev.c
    -rw-r--r-- 1 pi pi 449 Sep 8 17:58 Makefile
    -rw-r--r-- 1 pi pi 3013 Oct 10 2017 module.c
    -rw-r--r-- 1 pi pi 5890 Oct 10 2017 netdrv.c
    -rw-r--r-- 1 pi pi 550 Oct 10 2017 queue.c
    -rw-r--r-- 1 pi pi 254 Oct 10 2017 queue.h
    -rw-r--r-- 1 pi pi 658 Oct 1 2014 README.rst
    -rw-r--r-- 1 pi pi 8267 Oct 10 2017 regs.h
    -rw-r--r-- 1 pi pi 3398 Oct 25 2017 w5x00.h

    1
    None
    SchmidtR

    1 year ago

    Can you guide me to connect Raspberry and W5500, I have tried many times, but I don't know what connected to CS, RST, INT( on W5500), Is it CE0, BCM24 , BCM22 ?