cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot generate FreeRTOS and LwIP (for MQTT) on CubeMx for STM32 B-L4S5I-IOT01A discovery kit

ABals.1
Associate

We are working with the STM32 B-L4S5I-IOT01A discovery kit in the idea to then develop a product with the MCU STM32L4S5VIT. We are working with the SW4STM32 toolchain and want to integrate both FreeRTOS and LwIP (for MQTT protocol) on the STM32CubeMX project generator. However, it seems that it is not possible to generate such code based on theses configurations. Is there a reason for that or a work around ? Could we download directly FreeRTOS from their website and integrate this code easily?

Thank you in advance for your help.

5 REPLIES 5
Aplou.1
Associate III

I have the same issue !

I tried to use freeRTOS+TCP as a workaround, but it seems that it does not support the specific MCU.

If someone has any idea on how to fix the problem please advise, Thank You!

Guillaume K
ST Employee

Hello

Why do you want to generate code with LwIP ?

Is it because you want to use with it the WiFi chip present on the B-L4S5I-IOT01A board ?

Aplou.1
Associate III

Hello,

I juste realised that the Wi-Fi chip already integrates the tcp/ip stack, my problem lies in the serial communication between the Wi-Fi chip and the MCU. @Aurélie Balsa​ Did you have a similiar issue ?

Thank You!

Guillaume K
ST Employee

Hi

Yes the WiFi chip has its own TCP-IP stack. The link with STM32L4S5 is with SPI on B-L4S5I-IOT01. The AT command is described on Inventek web site https://www.inventeksys.com/iwin/at-cmds/

There's an example of communication with the Inventek ISM43362_M3G_L44 WiFi chip in STM32L4 FW package in https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects/B-L4S5I-IOT01A/Applications/WiFi . See Common\Src\wifi.c

ABals.1
Associate

Hello!

Thank you for your answer.

I wanted to reproduce an example of MQTT communication from the B-L475E-IOT01A from this code.

My problem came from the integration of the libraries, I could not manage to integrate what I wanted from the example. For this reason I tried to generate directly the code from CubeMx and I thought that the LwIP library was necessary.

So in a more general way, I have issues of merging different libraries from different examples and I don't know if there is an tutorial or an easy way to do this.

Thanks in advance for you support!