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
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.