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 Reply
  • Found this image of the wiz5100 ether net shield link text

    Using this layout I changed the pins to correspond to that layout:

    #define ARDUINO_13_PIN              NRF_GPIO_PIN_MAP(1, 15)  // Digital pin 13
    #define ARDUINO_12_PIN              NRF_GPIO_PIN_MAP(1, 14)  // Digital pin 12
    #define ARDUINO_11_PIN              NRF_GPIO_PIN_MAP(1, 13)  // Digital pin 11
    #define ARDUINO_10_PIN              NRF_GPIO_PIN_MAP(1, 12)  // Digital pin 10
    
                            .Pin_SCK                = ARDUINO_13_PIN,
                            .Pin_MOSI               = ARDUINO_11_PIN,
                            .Pin_MISO               = ARDUINO_12_PIN,
                            .Pin_CSN                = ARDUINO_10_PIN};	
    

    now the print out of my terminal has changed, to :

    === W5100 NET CONF ===
    MAC: 00:00:00:00:00:00
    SIP: 0.0.0.0
    GAR: 0.0.0.0
    SUB: 0.0.0.0
    DNS: 8.8.8.8
    ======================
    
Children
No Data
Related