Skip to main content
Adriano Melis
Associate III
Sep 29, 2022 1:33 PM UTC
Question

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

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.

This topic has been closed for replies.

1 reply

Amel NASRI
ST Technical Moderator
Oct 10, 2022 10:02 AM UTC

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 "Best Answer" on the reply which solved your issue or answered your question.