Skip to main content
iguffick2
Associate II
August 5, 2024
Question

USBX standalone on STM32H5

  • August 5, 2024
  • 5 replies
  • 4412 views

I'm trying to use STM32CubeMX to generate a USBX Device CDC ACM in standalone mode (without using ThreadX).

I'm using a Nucleo-H563ZI to test with.

 

I can do this with ThreadX and get it working, but when I try the standalone configuration it doesn't work.

Is there any documentation, howto or guide on how to configure and setup USBX standalone on the H5 series?

 

This topic has been closed for replies.

5 replies

BarryWhit
Lead
August 5, 2024
"- If someone's post helped resolve your issue, please thank them by clicking ""Accept as Solution"".- Please post an update with details once you've solved your issue. Your experience may help others."
iguffick2
iguffick2Author
Associate II
August 5, 2024

I'd seen and tried to follow this one:

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

But it's specifically related to the H7. Some of the function calls in the section '3. code editing' don't seem right for the H5. e.g. HAL_PCDEx_SetRxFifo and HAL_PCDEx_SetTxFifo block of calls. Wouldn't this need to be replaced with HAL_PCDEx_PMAConfig(...) calls for the H5?

 

BarryWhit
Lead
August 5, 2024

As far as official docs are concerned, I think that's about it on standalone USBX.

 

It's quite possible you have to adapt the example to other families. It's also true that this "supported" use case involves significantly more manual editing than is the norm with Cube.

"- If someone's post helped resolve your issue, please thank them by clicking ""Accept as Solution"".- Please post an update with details once you've solved your issue. Your experience may help others."
Visitor II
September 13, 2024

Thank you so much for the link.