Hello,
I'm currently migrating my application from TCP/IP to Netif. I used to have v4.0.3 and I'm moving to v4.3 stable. I'm following the recomendations found in here:
https://docs.espressif.com/projects/esp ... ation.html
But when I initially call:
ESP_ERROR_CHECK(esp_netif_init());
I get the next message in the console that points to this line
abort() was called at PC 0x40128b78 on core 0
0x40128b78: wifi_init at c:\users\pasca\documentos\development\build/../components/wifi/wifi.c:114 (discriminator 1)
Backtrace:0x4008f1ba:0x3ffbc190 0x4008f901:0x3ffbc1b0 0x40095776:0x3ffbc1d0 0x40128b78:0x3ffbc240 0x400d8d64:0x3ffbc340 0x401be063:0x3ffbc450
0x4008f1ba: panic_abort at C:/Users/pasca/esp-idf/components/esp_system/panic.c:367
Any hints or recomendations are welcome.
sch0bert
Calling esp_netif_init() caused a panic error
Re: Calling esp_netif_init() caused a panic error
Did you put #include "esp_netif.h" ?
Look at the examples here https://github.com/espressif/esp-idf/tr ... ng_started
Look at the examples here https://github.com/espressif/esp-idf/tr ... ng_started
Last edited by filo_gr on Tue Nov 16, 2021 2:03 pm, edited 1 time in total.
Filippo
Re: Calling esp_netif_init() caused a panic error
Assuming the `abort()` was called because `esp_netif_init()` did not return ESP_OK. `esp_netif_init()` logs an error message for any case that it does not return ESP_OK giving a reason for the failure. What does your console log show before the "abort() was called..."?sch0bert wrote: ↑Wed Sep 01, 2021 7:28 amBut when I initially call:
ESP_ERROR_CHECK(esp_netif_init());
I get the next message in the console that points to this line
abort() was called at PC 0x40128b78 on core 0
0x40128b78: wifi_init at c:\users\pasca\documentos\development\build/../components/wifi/wifi.c:114 (discriminator 1)
...
Who is online
Users browsing this forum: Bing [Bot] and 331 guests