Question
CubeMX LWIP Middleware Generated Code
Posted on February 12, 2015 at 13:51
I am having a problem with LWIP code. From MX tool I enable DNS so that LWIP_DNS is defined as 1 in lwipopts.h file yet this is not detected in any of the files. For example in netdb.c:
#if LWIP_DNS && LWIP_SOCKET
LWIP_DNS comes up as being 0 (incorrect) whereas LWIP_SOCKET comes up as being 1 (correct).
A search of LWIP_SOCKET locates this in lwipopts.h whereas a search of LWIP_DNS results in it not being found in lwipopts.h - Very strange.
The relevant paths are included in the project. I am using TrueSTUDIO 4.3.1.Has anyone else seen this problem?RgdsEmilio