Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: djkroko on June 29, 2025, 02:01:43 PM

Title: ESP32-PoE-ISO epaper and Ethernet not working together
Post by: djkroko on June 29, 2025, 02:01:43 PM
Hello,

i am working on a little Project using the ESP32-PoE-ISO and a Waveshare 7.5" Epaper with the e-Paper Driver HAT.

I want to integrate this into Home Assistant over ESPHome.

The Setup is working while using WiFi but as soon as I switch to Ethernet it stops working.
In the Serial Monitor i get following Error:
"
[12:55:12]E (47362) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[12:55:12]E (47362) task_wdt:  - loopTask (CPU 1)
[12:55:12]E (47362) task_wdt: Tasks currently running:
[12:55:12]E (47362) task_wdt: CPU 0: IDLE
[12:55:12]E (47362) task_wdt: CPU 1: loopTask
[12:55:12]E (47362) task_wdt: Aborting.
[12:55:12]
[12:55:12]abort() was called at PC 0x400ec1b9 on core 0
[12:55:12]
[12:55:12]
[12:55:12]Backtrace:0x400836a1:0x3ffbe83c |<-CORRUPTED
[12:55:12]
[12:55:12]
[12:55:12]
[12:55:12]
[12:55:12]ELF file SHA256: 0000000000000000
[12:55:12]
[12:55:12]Rebooting...
"


Currently I use the following PINs:
spi:
  clk_pin: GPIO14
  mosi_pin: GPIO4

Display:   
cs_pin: GPIO13
    dc_pin: GPIO15
    busy_pin: GPIO32
    reset_pin: GPIO33

When Ethernet is enabled:
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  power_pin: GPIO12


Are there any PINs I cannot use when I want to use Ethernet?
Currently it runs without PoE but in the Future it should run with PoE.

I hope someone can help me this.

Thank you
djkroko
Title: Re: ESP32-PoE-ISO epaper and Ethernet not working together
Post by: LubOlimex on June 30, 2025, 08:40:41 AM
"You need to have a network configuration (either Wifi or Ethernet) or ESPHome will fail in the config validation stage. You also can't have both Wifi and Ethernet setup in same time (even if your ESP has both wired)."

Read here: https://esphome.io/components/wifi.html

Then notice that've I tested ESP32-POE-ISO and for me WIFI and Ethernet work fine for what I've tested under Arduino IDE. I have no idea what is wrong with Home Assistant or if there is another problem. I attach the code I downloaded to ESP32-POE-ISO, it basically creates web-interface and both interfaces (WIFI and ETH) get IP and each pings 8.8.8.8 and reports over the web page. I also pinged from CMD each of the IPs (WIFI and ETH one) simultaneously and it all worked fine. If one of them disconnected I'd see it when I pinged it. Here is the code and the ping:

ESP32-POE-pin-monitor-web3.zip

Also open a web-page at http://esp32.local/ or either of the IP addresses.

There is also a simpler ping demo here:

https://github.com/OLIMEX/ESP32-POE/blob/master/SOFTWARE/ARDUINO/ESP32-POE-ETH-AP-ping-test/ESP32-POE-ETH-AP-ping-test.ino

Title: Re: ESP32-PoE-ISO epaper and Ethernet not working together
Post by: djkroko on June 30, 2025, 10:02:24 AM
I know that I can't use WiFi and Ethernet at the same time.

If I enable Ethernet then I disable WiFi in the Code.

But it did not work.

Then when I disable the spi and display section in the Code, Ethernet does work without any problems.

So I thought maybe I use Pins for the Display or SPI which I shouldn't use when I want to use Ethernet at the same time.
Title: Re: ESP32-PoE-ISO epaper and Ethernet not working together
Post by: LubOlimex on June 30, 2025, 11:10:34 AM
No, the pins you use for display and SPI are not related to the pins of the Ethernet.

But the error message you get "task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:" is strange. Maybe some of the software needs some extra delay? Can the watchdog be disabled and test without it?