Skip to main content
Visitor II
September 17, 2024
Question

USBX MSC Windows 11

  • September 17, 2024
  • 1 reply
  • 1429 views

Hello,

I am having a problem with the Azure USBX MSC libraries. The version I am using is ### V6.2.0 (23-12-2022) ###. The microcontroller is STM32U545.
If I connect the device to a computer with windows 7, the msc memory is mounted correctly and I can access both reading and writing. If instead I connect the device to windows 11, the hard disk icon is displayed but I have no way to access the resource and after a few minutes a hard fault occurs. In debug mode I saw that the driver crashes bouncing between the state: UX_SLAVE_CLASS_COMMAND_ACTIVATE and the state UX_SLAVE_CLASS_COMMAND_DEACTIVATE present in the file _ux_device_class_storage_entry.c
How can I solve it? Do I need a particular driver for windows 11?

Thanks

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    October 3, 2024

    Hi @EMont.1 

    Would you make sure to update the latest driver? Could you confirm you are using USBX standalone without FileX?Try to understand the cause of the hard fault by examining the call stack and the specific line of code where the fault occurs. This can provide insights into what might be causing the issue.

    Could you provide more details about your configuration STORAGE_BLK_SIZ, STORAGE_BLK_NBR and the allocated resources?

    EMont.1Author
    Visitor II
    October 3, 2024

    Hi

    I’m using the USBX libraries without standalone and without FileX. Are there any known issue with the configuration without standalone?

    I replicated the same issue with the NUCLEO-U545RE-Q using RAM instead of SDcard.

     

    With Windows 10 work fine

    thumbnail_image.png

    With Windows 11 

    thumbnail_image.png

    Thanks

     

     

     

    Technical Moderator
    October 4, 2024

    Hi @EMont.1 

    Would you start with the example provided STM32CubeU5/Projects/STM32U575I-EV/Applications/USBX/Ux_Device_MSC at main · STMicroelectronics/STM32CubeU5 (github.com)
    and replicate the issue? This would help to forward your request for testing!