cancel
Showing results for 
Search instead for 
Did you mean: 

Stm427 uses CUBE MX to generate LWIP code

WKUNY.1
Associate II

Stm427 uses CUBE MX to generate LWIP code, if define MEM_USE_POOLS 1 compile error, how to solve?

3 REPLIES 3

Hello @WKUNY.1​ 

Thanks for the feedback, it will be fixed next CubeMX version.

Best regards,

Nesrine

Hello @WKUNY.1​ 

If you read the Description of MEM_USE_POOLS parameter, an important Warning needs to be considered: "Warning: if you enable both MEMP_USE_CUSTOM_POOLS and MEM_USE_POOLS, you must have lwippools.h in your include path somewhere and you must define your pools within lwippools.h".

Therefore, by commenting the code in USER SECTION 0 within lwippools.h (this define default pools), you will get rid off this error.

Best regards,

Nesrine

Thank you very much! I'll try it.