Skip to main content
kajoje123
Associate II
February 9, 2020
Question

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

  • February 9, 2020
  • 3 replies
  • 1919 views

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!

3 replies

Piranha
Principal III
February 9, 2020

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
kajoje123Author
Associate II
February 10, 2020

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
August 5, 2020

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

Associate II
May 28, 2024

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 !!!!