Skip to main content
Associate
April 27, 2026
Question

STM32N6 USBX Standalone Guide

  • April 27, 2026
  • 0 replies
  • 34 views

Is there a guide that shows how to set up a CDC USB device on the STM32N6 without using ThreadX in baremetal mode?

 

I've tried following both, but it seems to hardfault on both examples crash at __lib_init_array(). I've tried increasing the stack and heap sizes to no success:

https://community.st.com/t5/stm32-mcus/how-to-use-stmicroelectronics-classic-usb-device-middleware-with/ta-p/599274 

 

https://community.st.com/t5/stm32-mcus/how-to-implement-usbx-in-standalone-mode/ta-p/614435 

 

It's frustrating that the old USB_Device middleware got removed. We shouldn't be forced to use an RTOS where it is not needed...