cancel
Showing results for 
Search instead for 
Did you mean: 

USBX standalone on STM32H5

iguffick2
Associate III

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?

 

4 REPLIES 4
BarryWhit
Lead II

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

(standalone, but HID not CDC)

 

https://community.st.com/t5/stm32-mcus/how-to-implement-the-usb-device-cdc-vcom-in-stm32-using-the/ta-p/599170

(CDC with RTOS)

- 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.

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?

 

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.
EleanorCooper
Associate

Thank you so much for the link.