You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i am implementing my own NIC driver for LWIP on ESP32.
I am able to ping the device. If i try to open TCP connection to closed port, it does correctly reject it. If i try to connect to webserver on port 80, it does finish the TCP handshake, but as soon as i send HTTP request, the ESP32 freezes and in few seconds triggers the Task watchdog with following message:
[Apr 20 10:19:27.644] E (48144) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[Apr 20 10:19:27.652] - mgos (CPU 1), backtrace: - mgos (CPU 1), backtrace:0x40080ADD 0x40088C22 0x40088CC5 0x40082AAA 0x40082B81 0x401009B6 0x40100A49 0x4012E875 0x400FC74C 0x4013136D 0x40131D7E 0x4013136D 0x401327D9 0x40134785 0x40134CA4 0x40134CDD 0x4013C559 0x4012D6C2 0x40082835 0x4008273F
[Apr 20 10:19:27.677]
[Apr 20 10:19:27.677] E (48144) task_wdt: Tasks currently running:
[Apr 20 10:19:27.682] E (48144) task_wdt: CPU 0: IDLE0
[Apr 20 10:19:27.685] E (48144) task_wdt: CPU 1: IDLE1
[Apr 20 10:19:27.688] E (48144) task_wdt: Aborting.
[Apr 20 10:19:27.693]
[Apr 20 10:19:27.693] abort() was called at PC 0x400d0e8a on core 0
[Apr 20 10:19:27.696]
[Apr 20 10:19:27.696] Backtrace:0x40085cca |<-CORRUPTED
I don't have WIFI or any other NIC configured.
I just load my lwip netif driver and configure IP adress using netif_add(...); netif_set_up(...);
That should be enough, because on lwip side everything seems to be working.
Perhaps the mongoose http server has some hardcoded reference to wifi interface which is not loaded when i use my custom NIC instead? That might be causing the crash...
The text was updated successfully, but these errors were encountered:
Harvie
changed the title
Freeze when using custom LWIP NIC driver
Freeze when using custom LWIP Netif driver
Apr 20, 2021
Hello,
i am implementing my own NIC driver for LWIP on ESP32.
I am able to ping the device. If i try to open TCP connection to closed port, it does correctly reject it. If i try to connect to webserver on port 80, it does finish the TCP handshake, but as soon as i send HTTP request, the ESP32 freezes and in few seconds triggers the Task watchdog with following message:
I don't have WIFI or any other NIC configured.
I just load my lwip netif driver and configure IP adress using
netif_add(...); netif_set_up(...);
That should be enough, because on lwip side everything seems to be working.
Perhaps the mongoose http server has some hardcoded reference to wifi interface which is not loaded when i use my custom NIC instead? That might be causing the crash...
The text was updated successfully, but these errors were encountered: