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
  • Frist make sure that the SPI pins are connected correctly.

    • SER_APP_SPIM0_SCK_PIN = P0.27
    • SER_CON_SPIS_MOSI_PIN = P0.02
    • SER_CON_SPIS_MISO_PIN = P0.26
    • SER_APP_SPIM0_SS_PIN = P1.13

    There have been some bugs in some libraries with using the port 1 pins in previous SDK version, so you could try to use a different pin for SER_APP_SPIM0_SS_PIN , you could try to use e.g NRF_GPIO_PIN_MAP(0,3) instead of P1.13.

    If you have access to a logic analyzer(e.g saleae logic), you should take look at the data being sent over the SPI lines.

    You could also try debugging, set the optimization level to 0, place some breakpoints, and see if the code is working as it should.

Children
No Data
Related