Closed chegewara closed 1 week ago
I think I have the same problem, esp-idf 5.3.1 and component ethernet_init 0.3.2 are not compatible.
For me downgrading ethernet_init to 0.3.0 fixed the issue, for now.
I guess it will be fixed when they will release a new esp-idf version, which includes 0738314
Thanks for reporting. this is certainly wrong and will be fixed!
The reason it has passed internal tests (and works on most targets) is that it "usually" won't dereference the argument, just reports ESP_ERR_INVALID_ARG
when starting the DHCP server (and it would still work as the handler is called also from Ethernet driver's logic)
Do you use CONFIG_PPP_SUPPORT
?
Hi @david-cermak No, i am not using PPP. It was briefly tested with ethernet as a wired connection. Like I said, with USB as wired netif it works great and I love it, because I've been thinking about how to do it for quite some time.
Since I have only basic knowledge about networking I gave up when this failed with ethernet.
Thanks
Answers checklist.
IDF version.
master and older
Espressif SoC revision.
any
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
any
Power Supply used.
USB
What is the expected behavior?
To not crash.
What is the actual behavior?
Hello espressif team. I dont want to sound rude, but i cant believe this example passed internal tests https://github.com/espressif/esp-idf/tree/master/examples/network/sta2eth
I wanted to prepare this example for esp32-P4, and maybe even to make PR for it, but it just crash because of very simple mistake. Here is code that is registering eth events handler where last argument is
NULL
: https://github.com/espressif/esp-idf/blob/master/examples/network/sta2eth/main/ethernet_iface.c#L282 and here is code which is trying to use that argument: https://github.com/espressif/esp-idf/blob/master/examples/network/sta2eth/main/ethernet_iface.c#L47Steps to reproduce.
Build and flash with ethernet wired interface. (with USB wired it works)
Debug Logs.
No response
More Information.
No response