I am unable to make working ThreadX USBX Host example for STM32U5 adopted for Nucleo-U575ZI-Q.
All, but the last setup step described in Introduction to USBX section 3.3 complete properly, but when finally HAL_HCD_Start() is called, ThreadX crashes. What could be wrong/missing?
System crashes even before OTG_FS_IRQHandler() is called. HSI48 clock has correct frequency, I measured it.
Problem solved. CubeMX does not recreate the correct required "startup_stm32u575zitxq.s" file, so file taken from the original example for the wrong MPU was used, with a different USB ISR handler name: OTG_FS_IRQHandler vs OTG_HS_IRQHandler.
Probably it is a CubeMX bug.
Hello @TDJ ,
Thank you for having reported this issue.
Which CubeMX version used? If possible, share you ioc file. We will try to reproduce your issue and raised the issue internally for working.