-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB PMA Buffers are not initialised correctly, causing USB enumeration to fail #2
Comments
Hi @h-actsafe Can you please take a look at this example of PMA config with Ux_Device_CDC_ACM developed on G0 [STM32G0C1E-EV] Best Regards. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using:
While trying to get UsbX working all different setups would fail. Hardware is known good as the built in ST Bootloader enumerates correctly and works perfectly to flash over USB from Windows.
I finally tracked it down to the Buffer Descriptor table in PMA Memory not being correcly initialised by the UsbX STM adaptation layer in x-cube-azrtos-l4/tree/main/Middlewares/ST/usbx/common/usbx_stm32_device_controllers/
A "dumb" workaround by calling HAL_PCDEx_PMAConfig() before starting the stack makes enumeration work.
E.g. for a CDC class use the following works.
But this should really be fixed in
ux_dcd_stm32_initialize()
orux_dcd_stm32_initialize_complete()
Without any reasonable PMA configuration USB will always fail and be completely unusable.
The text was updated successfully, but these errors were encountered: