khoih-prog / Ethernet_Generic

Simple Ethernet library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, W5100S, W6100. With this library you can use the Arduino Ethernet (shield or board) to connect to Internet to provides both Client and server functionalities.
42 stars 22 forks source link

RP2040 Mbed Core SPI pins #7

Closed CanGuveren closed 2 years ago

CanGuveren commented 2 years ago

I am using RP2040 with Arduino MBED core. I tried "UDPSendReceive" example but SPI pins is wrong. How can I set the pins as SCK: GPIO2, MOSI: GPIO3, MISO: GPIO4, SS/CS: GPIO5.

Start UDPSendReceive on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer Ethernet_Generic v2.3.1 [ETG] Default SPI pinout: [ETG] MOSI: 19 [ETG] MISO: 16 [ETG] SCK: 18 [ETG] SS: 17 [ETG] ========================= [ETG] RPIPICO setCsPin: 17 [ETG] W5100 init, using SS_PIN_DEFAULT = 17 , new sspin = 10 , W5100Class::ss pin = 17 [ETG] W5100::init: no chip :-( [ETG] Currently Used SPI pinout: [ETG] MOSI: 19 [ETG] MISO: 16 [ETG] SCK: 18 [ETG] SS: 17 [ETG] ========================= Using mac index = 12 Connected! IP address: 0.0.0.0 Speed: NO LINK, Duplex: NO LINK, Link status: NO LINK