cancel
Showing results for 
Search instead for 
Did you mean: 

Instantiating a USB device on stm32h743 causes program to crash

Leroy3
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Leroy3
Associate II

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

View solution in original post

1 REPLY 1
Leroy3
Associate II

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