cancel
Showing results for 
Search instead for 
Did you mean: 

BUG? STM32Cube USB_HOST configurator nests osThreadNew() in the default thread function

Adriano Melis
Associate III

Scenario: the configuration for the RTOS has the defalt task generation set as weak

If USBH_USE_OS is Enabled the call to MX_USB_HOST_Init() is put in the weak implementation of the CMSIS default thread, suggesting to do this in the real implementation.

During MX_USB_HOST_Init() execution a thread is configured, but was not registered when the RTOS has started.

This happens also when the defauilt task generator is set as Default, the generated template for the default task leads to a task function which initializes another task.

1 REPLY 1
Amel NASRI
ST Employee

Hi @Adriano Melis​ ,

Could you please precise the STM32CubeMX version you are using as well as the STM32 product?

I let our STM32CubeMX expert @Semer CHERNI​ continue investigation based on the inputs you will be sharing.

6Amel

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.