Skip to content
Angus Gratton edited this page Feb 23, 2016 · 5 revisions

Common Compiler Errors

lwip/ip_addr.h: No such file or directory

../../include/espressif/esp_misc.h:9:26: fatal error: lwip/ip_addr.h: No such file or directory
#include "lwip/ip_addr.h"

LWIP and some other components are in "git submodules". If you don't do git clone --recursive then you won't have these modules yet.

To remedy, run these commands:

git submodule init
git submodule update

xtensa/config/core.h: No such file or directory

In file included from ../../include/xtensa_interrupts.h:14:0,
from ../../core/include/esp/gpio.h:15,
from ../../core/include/esp8266.h:18,
from ../../FreeRTOS/Source//portable/esp8266/portmacro.h:73,
from ../../FreeRTOS/Source//include/portable.h:318,
from ../../FreeRTOS/Source//include/FreeRTOS.h:87,
from /home/esp8266/esp8266/esp-open-sdk/esp-open-rtos/examples/simple/simple.c:5:
../../FreeRTOS/Source//portable/esp8266/xtruntime.h:29:32: fatal error: xtensa/config/core.h: No such file or directory
#include

esp-open-rtos requires libhal which is usually built as part of esp-open-sdk. This error indicates the libhal headers aren't installed. This can happen if the esp-open-sdk "make" process partially completes but then stops with an error.

Debugging Tips

Debugging LWIP TCP/IP

To enable the built-in LWIP IP stack debugging, uncomment LWIP_DEBUG in the lwipopts.h header file and then set the debug flags you would like to see to LWIP_DBG_ON.

See also the LWIP wiki page.

If you are editing lwipopts.h a lot, remember you can copy it to your program's include directory to override the version from the top-level lwip directory.

Crash Dumps

The Crash Dumps page has details about deciphering the "fatal exception" crash dumps.

Clone this wiki locally