Skip to main content
WKUNY.1
Associate II
January 22, 2020
Question

Stm427 uses CUBE MX to generate LWIP code

  • January 22, 2020
  • 2 replies
  • 899 views

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

This topic has been closed for replies.

2 replies

Nesrine.JLASSI
Visitor II
January 24, 2020

Hello @WKUNY.1​ 

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

Best regards,

Nesrine

Nesrine.JLASSI
Visitor II
January 27, 2020

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

WKUNY.1
WKUNY.1Author
Associate II
January 27, 2020

Thank you very much! I'll try it.