Silicognition wESP32 Ethernet (power up timeout)

defbu123
Posts: 1
Joined: Mon Jul 17, 2023 5:56 pm

Silicognition wESP32 Ethernet (power up timeout)

Postby defbu123 » Mon Jul 17, 2023 6:04 pm

Hello,

I've got an Sillicognition wESP32 (revision 7 with RTL8201 chip) connected to my computer via the programmer.

If I run the code below (the code originates from the documentation), I'll get the following error:
  1. 19:55:22.704 -> E (133) rtl8201: rtl8201_pwrctl(252): power up timeout
  2. 19:55:22.704 -> E (133) rtl8201: rtl8201_init(334): power control failed
  3. 19:55:22.746 -> E (133) esp_eth: esp_eth_driver_install(215): init phy failed
  1. #include <ETH.h>
  2. #include <WebServer.h>
  3. #include <ESPmDNS.h>
  4.  
  5. // Web server
  6. WebServer server(80);
  7.  
  8. // HTTP handlers
  9. void handleRoot() {
  10.   server.send(200, "text/plain", "Hello from wESP32!\n");
  11. }
  12.  
  13. void handleNotFound() {
  14.   server.send(404, "text/plain", String("No ") + server.uri() + " here!\n");
  15. }
  16.  
  17. void setup(){
  18.   // Start the Ethernet, revision 7+ uses RTL8201
  19.   ETH.begin(0, -1, 16, 17, ETH_PHY_RTL8201);
  20.   // The defaults work for older revision boards
  21.   // ETH.begin();
  22.   // You can browse to wesp32demo.local with this
  23.   MDNS.begin("wesp32demo");
  24.  
  25.   // Bind HTTP handler
  26.   server.on("/", handleRoot);
  27.   server.onNotFound(handleNotFound);
  28.  
  29.   // Start the Ethernet web server
  30.   server.begin();
  31.   // Add service to MDNS-SD
  32.   MDNS.addService("http", "tcp", 80);
  33. }
  34.  
  35. void loop(){
  36.   server.handleClient();
  37. }
Any help to solve my issue is welcome.

Who is online

Users browsing this forum: Google [Bot] and 70 guests