cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 and LwIP - Enable Thread Safe APIs (socket options) in CubeMX

kajoje123
Associate II

Hello,

I want to enable thread safe APIs in a CubeMX configuration.

When working with STM32F7, after RTOS enabling, the <NO_SYS (OS Awarness)> option has been automatically enabled so I could enable <LWIP_SOCKET (socket API)> option as well.

Now I want to try it on STM32H7 but after RTOS enabling the option <NO_SYS (OS Awarness)> stays disabled.

Is there something I am missing?

Thank you in advance!

5 REPLIES 5
Piranha
Chief II

Enabling "NO_SYS" means disabling RTOS!

With HAL/CubeMX networking on H7 is almost non-working:

https://community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32

kajoje123
Associate II

Thank you Piranha for your response!

  • Enabling "NO_SYS" means disabling RTOS!

I am sorry, by enabling I meant change the state from "OS not used" to "OS used".

JimSChen.4
Associate II

Hi Kajoje,

Have you solve the NO_SYS issue please? I am facing exactly the same problem. I am using the same chip stm32h745 with necleo-144 board and stm32cubeIDE with cubeMX embedded. I have selected FreeRTOS for both CM7 and CM4 in the .ioc design. But when selecting lwip, in tab "General Settings -> RTOS dependency", the "WITH_RTOS (Use FREERTOS ** CubeMX specific **)" is greyed out. Also in tab "Key Optioins -> Infrastructure - OS awareness option", the "NO_SYS (OS Awarness)" is enabled but only has "OS not used" option.

I also want to use OS (FreeRTOS). So can somebody shine a light please how to change this or it is a bug in the cubeMX?

Thanks in advance,

Jim

STM32CubeIDE V6.11.1 still has this issue right now. Even both CM4 and CM7 are configured to use FreeRTOS, LWIP cannot be enabled without selecting both CM4 and CM7, and the WORST, it still be OS Not Used !!!!

I am using STM32CubeIDE V6.11.1 with H7 FW V1.11.2 but still get this old issue.