Skip to main content
PGell.1
Associate II
April 12, 2021
Question

How to setup a STM32CubeIDE project, using X-Cube-Cellular v5.2.0, to build and including the LWIP middleware variant? (SOLVED)

  • April 12, 2021
  • 4 replies
  • 1590 views

I need to start from DISCOL496_RD_Sequans (or BG96) project and to wstich to LWIP stack's socket by including the LWIP middleware.

As setting IDE Preprocessor USE_SOCKETS_TYPE=USE_SOCKETS_LWIP is not sufficient to include LWIP, as Eclipse generated makefile do not build LWIP sources at all.

Which are the steps needed to include it?

There are no out-of-the box project for STM32CubeIDE to use LWIP in the X-CUBE-CELLULAR v.5.2.0. Any reasons?

TYIA

This topic has been closed for replies.

4 replies

Ronan GABOU
ST Employee
April 21, 2021

To have LwIP up and running with CubeIDE you have to set USE_SOCKETS_TYPE=USE_SOCKETS_LWIP as you did but you also must untick the option "Exclude resource from build". To do so, select "Properties" on LwIP middleware, select C/C++ Build and unselect the option. So the LwIP middleware will be build and included into your STM32 FW.

PGell.1
PGell.1Author
Associate II
April 23, 2021

Thanks, this help to solve the issue.

Cartu38 OpenDev
Graduate II
April 26, 2021

Please mark as answered ... will help community to dig into valuable post more efficiently.

PGell.1
PGell.1Author
Associate II
April 26, 2021

Please tell me how to mark as answered... sorry, I cannot find it

PGell.1
PGell.1Author
Associate II
May 3, 2021

Just adding Solved in the headline