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.

  • Hey Sigurd,

    Thanks for responding, I was using different pins. Because I thought I the pins had to be used corresponding to the pins identified on the Ethernet Shield (wiznet 5100). I tried changing the pins of the rest and the both the SER_APP_SPIM0_SS_PIN to 1.13 and 0.3 pins.

    I also got UART running now and can see some console output from the library you send me earlier. It seems that it is not recognizing the Wiznet5100. Console output below from the network_init(); function

    W5500 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
    

    So it seems that things are going wrong with the SPI, if I check the example you send me they are using different pins.

    Will try the debugging but at this moment I do not have a logic analyzer.

Reply
  • Hey Sigurd,

    Thanks for responding, I was using different pins. Because I thought I the pins had to be used corresponding to the pins identified on the Ethernet Shield (wiznet 5100). I tried changing the pins of the rest and the both the SER_APP_SPIM0_SS_PIN to 1.13 and 0.3 pins.

    I also got UART running now and can see some console output from the library you send me earlier. It seems that it is not recognizing the Wiznet5100. Console output below from the network_init(); function

    W5500 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
    

    So it seems that things are going wrong with the SPI, if I check the example you send me they are using different pins.

    Will try the debugging but at this moment I do not have a logic analyzer.

Children
No Data
Related