Skip to main content
Associate II
March 21, 2024
Solved

Instantiating a USB device on stm32h743 causes program to crash

  • March 21, 2024
  • 1 reply
  • 817 views

Working with STM32H743 and STM32CubeIDE 1.14.0.

Created a project with FreeRTOS and USB Device CDC.

When the program goes into the first vTaskDelay(1000) a hard crash occurs.

This topic has been closed for replies.
Best answer by Leroy3

The default stack size set by FreeRTOS is 128.

This is too small when instantiating the USB Device driver.

Once I increased the default size to 512, the program stopped crashing

1 reply

Leroy3AuthorBest answer
Associate II
March 22, 2024

The default stack size set by FreeRTOS is 128.

This is too small when instantiating the USB Device driver.

Once I increased the default size to 512, the program stopped crashing