Connection W5500 Ethernet Mudole to ESP32S3

Hello,
i have already succeeded to connect W500 to ESP32S3-DEVKIT-C1 using default SPI.
CS -> GPIO10
MOSI -> GPIO11
CLK -> GPIO12
MISO -> GPIO13
Now what i want is for some reasons to cennct the W5500 using the SPI1:
CS -> 39
MOSI ->35
CLK ->36
MISO ->37
I am using the following libraries:
EthernetWebServer.h
Ethernet_Generic.h
I couldn't manage to establish a connection
OUTPUT: W5100::init: no chip :frowning:
Here is my code:

#include <EthernetWebServer.h>
#include <Ethernet_Generic.h>


// CS pin for the W5500 ethernent shield and frequency
#define W5500_CS  39
#define SPI_FREQ  32000000

// MAC and IP address for the Ethernet communication
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(10, 10, 225, 210);

// (port 80 is default for HTTP):
EthernetWebServer server(80);

void setup() {
  // put your setup code here, to run once:

  Serial.begin(115200);
  while(!Serial);
      

  SPI.setFrequency(SPI_FREQ);
  Ethernet.init(W5500_CS);
  delay(2000);

  // Start the ethernet connection and the server:
  Ethernet.begin(mac, ip);
  Serial.println("Ethernet has begun!");

  delay(500);
  
  if (Ethernet.hardwareStatus() == EthernetNoHardware)
  {
    Serial.println("No Ethernet found");

    while (true)
    {
      delay(1); // do nothing, no point running without Ethernet hardware
    }
  }

  if (Ethernet.linkStatus() == 2)
  {
    Serial.println("No Ethernet cable");
  }

  delay(1000);
  
  server.begin();
  Serial.print("IP Address: ");
  Serial.println(Ethernet.localIP());

}

void loop() {
  // put your main code here, to run repeatedly:

}

have someone managed that?
Thanks a lot.

https://github.com/espressif/arduino-esp32/tree/master/libraries/Ethernet/examples

Thank you @Juraj for your answer.
It hasn't worked for me.
In the datasheet of ESP32S3 is written that those pins are used for SPI bus:
35 -> MOSI
36 -> CLK
37 -> MISO
39 -> CS
But when i map them and burn the code on ESP32S3, i get the following output:
[ETG] W5100::init: no chip:-(
I am using the W5500

I have managed to connect the W5500 to the ESP32S3 using the folloeing pins:
SCK -> 37
SS -> 38
MOSI -> 35
MISO -> 36
And here is a small sketch:

#include "SPI.h"
#include "EthernetWebServer.h"

#define SCK       36
#define SS        38
#define MOSI      35
#define MISO      37
#define SPI_FREQ  32000000

EthernetWebServer ethernetserver(80);

// MAC and IP address for the Ethernet communication
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(10, 10, 10, 210);

void setup() {
  Serial.begin(115200);

  SPI.begin(SCK, MISO, MOSI, SS);
  SPI.setFrequency(SPI_FREQ);
  Ethernet.init(SS);

  delay(1000);

  Ethernet.begin(mac, ip);

  delay(500);
  
  if (Ethernet.hardwareStatus() == EthernetNoHardware)
  {
    Serial.println("No Ethernet found");
    while (true)
    {
      delay(1); // do nothing, no point running without Ethernet hardware
    }
  }

  if (Ethernet.linkStatus() == 2)
  {
    Serial.println("No Ethernet cable");
  }

  ethernetserver.begin();

  Serial.print("MOSI: ");
  Serial.println(MOSI);
  Serial.print("MISO: ");
  Serial.println(MISO);
  Serial.print("CLK: ");
  Serial.println(SCK);
  Serial.print("CS: ");
  Serial.println(SS);

  Serial.print("Server IP Address: ");
  Serial.println(Ethernet.localIP());
}

void loop() {
}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.