cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to make LwIP work with FreeRTOS using CMSIS_V2

_AdamNtrx
Associate III

Hello!

I have encountered a problem - I am unable to create a project for STM32F769I-DISCO board with both FreeRTOS using CMSIS_V2 interface and LwIP with NO_SYS parameter set to "OS Used".

In old project that was setup with STM32CubeMX V6.14.0 using STM32Cube FW-F7 V1.17.2 I had no problem with setting both CMSIS_V2 and "OS Used" value.
In new project that uses STM32CubeMX V6.16.1 and STM32Cube FW_F7 V1.14.4 I have to use CMSIS_V1 interface for FreeRTOS if I want to change LwIP's NO_SYS parameter to "OS Used".

Did something change in recent updates, is it a bug or am I doing something wrong? Thank You for help in advance.

 

Using FreeRTOS with CMSIS_V2Using FreeRTOS with CMSIS_V2

Can't change NO_OS parameterCan't change NO_OS parameter

CubeMX 6.16.1, Firmware F7_V1.17.4CubeMX 6.16.1, Firmware F7_V1.17.4

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

The CMSIS_V2 API is not supported for the STM32F7 series when using LWIP. Please use CMSIS_V1.

Please refer to this knowledge base article: Implementing a LwIP and FreeRTOS™ v1 UDP echo server on the STM32F7 series 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

7 REPLIES 7
mƎALLEm
ST Employee

Hello,

The CMSIS_V2 API is not supported for the STM32F7 series when using LWIP. Please use CMSIS_V1.

Please refer to this knowledge base article: Implementing a LwIP and FreeRTOS™ v1 UDP echo server on the STM32F7 series 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Thank You for very quick response. However, your answer makes me raise two questions: how is it possible that my old project allowed me to use CMSIS_V2 and LwIP simultaneously? And why am I able to choose CMSIS_V2 in CubeMX for my project using F7 board if F7 series supports only CMSIS_V1?

I don't know for CubeMx but for STM32F7 and by using LWIP, you need to use CMSIS_V1 instead of CMSIS_V2.

Refer to this thread: CubeMX FREERTOS CMSIS_V2 LWIP - RTOS Dependency

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
mƎALLEm
ST Employee

After checking internally, the STM32F7 LwIP implementation (CubeFW and CubeMX) has not been updated to CMSIS V2. Since the product is currently under limited and reduced maintenance, there are no plans to perform this update for the moment. That confirms my saying above.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

All right, thank You. May I ask where is it noted that STM32F7 series doesn't support CMSIS_V2? Also I still wonder why older CubeMX allowed me to run LwIP with FreeRTOS using CMSIS_V2 and newer doesn't allow this, and both CubeMX versions allow to choose CMSIS_V2 even though it is not supported.

"Allows you" doesn't mean it's possible in real. 

I will ask for a possibility to add a warning in CubeMx telling the user that's not possible to select LWIP+CMSIS V2 when he selects STM32F7 product. I'll get back to you for the team feedback.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Thank You. I will mark one of Your responses as a solution. If only You could tell me where I can find information which STM32 series support specific CMSIS interfaces and which do not, I would be thankful.


EDIT: New thread for that question:

Where to look for information if specific STM32 MCU supports specific CMSIS version?