Skip to main content
Adriano Melis
Associate III
September 29, 2022
Question

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

  • September 29, 2022
  • 1 reply
  • 837 views

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
Technical Moderator
October 10, 2022

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.