This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Wiznet5100 ethernet shield on nRF52840

Dear Nordic Devzone,

I want to run an Arduino Ethernet Shield with the Wiznet5100 on the nRF52840. I was wondering if there was an easier way to do this then having to rewrite the SPI code by myself.

www.arduino.cc/.../ArduinoEthernetShieldV1

Currently I am using the Keil IAR /uVision to compile my code and can easily compile and run all the examples included. I am just a bit lost on how to use the ethernet shield with the nRF52840.

I thought I would be able to use some Arduino library to easily get it working.

Any help or direction in which to start would be much appreciated.

ToasTer

Parents
  • Hi,

    You can find a nRF5x SPI library for the WIZnet 5500 chip at this github page. This should be a good starting point.

    Also see this blog post about WIZnet's BLE to TCP Gateway.

  • Hi Sigurd, thanks again.

    Yep I just figured that out before you messaged, I am sorry. Right now I am using this as well as a kind of logbook for what I have done.

    So now it is still printing out

    === W5100 NET CONF ===
    MAC: FF:FF:FF:FF:FF:FF
    SIP: 255.255.255.255
    GAR: 255.255.255.255
    SUB: 255.255.255.255
    DNS: 8.8.8.8
    ======================
    

    in the network_init(); function on user_ethernet.c line 81 the gWIZNETINFO variable is filled before setting the ctlnetwork(CN_SET_NETINFO, (void*)&gWIZNETINFO); function. But after the set & get ctlnetwork(CN_GET_NETINFO, (void*)&gWIZNETINFO); gWIZNETINFO is empty again.

    So will trouble shoot that now.

    Really seems like I am getting somewhere at least. Thanks again Sigurd for all your help up till now.

Reply
  • Hi Sigurd, thanks again.

    Yep I just figured that out before you messaged, I am sorry. Right now I am using this as well as a kind of logbook for what I have done.

    So now it is still printing out

    === W5100 NET CONF ===
    MAC: FF:FF:FF:FF:FF:FF
    SIP: 255.255.255.255
    GAR: 255.255.255.255
    SUB: 255.255.255.255
    DNS: 8.8.8.8
    ======================
    

    in the network_init(); function on user_ethernet.c line 81 the gWIZNETINFO variable is filled before setting the ctlnetwork(CN_SET_NETINFO, (void*)&gWIZNETINFO); function. But after the set & get ctlnetwork(CN_GET_NETINFO, (void*)&gWIZNETINFO); gWIZNETINFO is empty again.

    So will trouble shoot that now.

    Really seems like I am getting somewhere at least. Thanks again Sigurd for all your help up till now.

Children
No Data
Related