This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[bug report] SDK 14.1: debug log lwIP

Hi @ all,

We tried to enable debug log for lwIP module by setting NRF_LWIP_DRIVER_CONFIG_LOG_ENABLED in sdk_config.h to 1.

This threw two errors during the build process which we solved as follows:

  1. In lwip\src\port\nrf_platform_port.c we changed #define NRF_LOG_MODULE_NAME IP-DRI to #define NRF_LOG_MODULE_NAME lwIP

  2. In sdk_config.h in section NRF_LWIP_DRIVER_CONFIG_LOG_ENABLED we changed NRF_LWIP_DRIVER_CONFIG_LOG_LEVEL to IOT_NRF_DRIVER_CONFIG_LOG_LEVEL (same for _INFO_COLOR and _DEBUG_COLOR), since these defines are referenced in nrf_platform_port.c

Best Regards, Carl

Related