ESP32 with Ethernet - Can't get it to work
Posted: Wed Apr 21, 2021 2:25 pm
Hello,
I am currently trying to build my own ESP32 with Ethernet but I simply can't get them to work.
I have 2 Ethernet Modules here but neither method I try to work with I can't seem to get it to work.
Over SPI
https://cdn.shopify.com/s/files/1/1509/ ... 3635718033
I tried to use https://github.com/8-DK/EtherCard - Where I get stucked in a loop in :
while (!readOp(ENC28J60_READ_CTRL_REG, ESTAT) & ESTAT_CLKRDY)
The other method was with
https://github.com/UIPEthernet/UIPEthernet
Where I tried to use following code:
First of all it takes forever to load and then it only returns 0.0.0.0
So I tried another method:
Over RMII
https://www.amazon.de/gp/product/B07BFP ... UTF8&psc=1
while using this guide https://sautter.com/blog/ethernet-on-es ... g-lan8720/
But this didnt work at all as the PHY doesnt even get found.
My schematics are always as in the examples nothing extra or changed as I just wanted to try a simple connection.
Does anyone has some experience here ?
Thanks and greetings
Darath!
I am currently trying to build my own ESP32 with Ethernet but I simply can't get them to work.
I have 2 Ethernet Modules here but neither method I try to work with I can't seem to get it to work.
Over SPI
https://cdn.shopify.com/s/files/1/1509/ ... 3635718033
I tried to use https://github.com/8-DK/EtherCard - Where I get stucked in a loop in :
while (!readOp(ENC28J60_READ_CTRL_REG, ESTAT) & ESTAT_CLKRDY)
The other method was with
https://github.com/UIPEthernet/UIPEthernet
Where I tried to use following code:
Code: Select all
#include <UIPEthernet.h>
#include <utility/logging.h>
EthernetClient ethClient;
uint8_t macaddress[6] = {0x1,0x2,0x3,0x4,0x5,0x6};
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Ethernet.begin(macaddress); // Dynamic IP setup
delay(5000);
Serial.print("Local IP : ");
Serial.println(Ethernet.localIP());
Serial.print("Subnet Mask : ");
Serial.println(Ethernet.subnetMask());
Serial.print("Gateway IP : ");
Serial.println(Ethernet.gatewayIP());
Serial.print("DNS Server : ");
Serial.println(Ethernet.dnsServerIP());
Serial.println("Ethernet Successfully Initialized");
}
void loop() {
// put your main code here, to run repeatedly:
}
So I tried another method:
Over RMII
https://www.amazon.de/gp/product/B07BFP ... UTF8&psc=1
while using this guide https://sautter.com/blog/ethernet-on-es ... g-lan8720/
But this didnt work at all as the PHY doesnt even get found.
My schematics are always as in the examples nothing extra or changed as I just wanted to try a simple connection.
Does anyone has some experience here ?
Thanks and greetings
Darath!