You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
But this should really be fixed in ux_dcd_stm32_initialize() or ux_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:
hepr-skylotec
changed the title
USB PMA Buffers are not initialised correctly causing USB failed enumeration
USB PMA Buffers are not initialised correctly causing USB enumeration to fail
Oct 27, 2022
hepr-skylotec
changed the title
USB PMA Buffers are not initialised correctly causing USB enumeration to fail
USB PMA Buffers are not initialised correctly, causing USB enumeration to fail
Oct 27, 2022
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: