espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.63k stars 7.28k forks source link

component/ethernet_init fails whith debug (or verbose) logs (IDFGH-12211) #13264

Open mickeyl opened 8 months ago

mickeyl commented 8 months ago

Answers checklist.

General issue report

When debug or verbose logs are enabled, the w5500_task will crash at runtime because the default stack is not enough.

I would suggest to enhance /examples/ethernet/basic/components/ethernet_init/ethernet_init.c with mac_config.rx_task_stack_size = 8192;, iff debug or verbose logs are enabled.

This is the source of quite a number of questions on the ESP32 forum and elsewhere, where people are looking for problems in their code, when it's actually just a misconfigured stack size.

mickeyl commented 7 months ago

Alternatively you might want to make this customizable via KConfig?

kostaond commented 7 months ago

@mickeyl Thanks for the proposed improvement. I'll have a look at it. However, please be patient since we currently have different priorities. Thanks for understanding.

mickeyl commented 7 months ago

Absolutely, this is completely uncritical. Thanks for responding.