2024-10-21 09:30 AM
Hi,
I have got the filex + levelx working with qspi nor flash chip ( 16 MB size )along with threadx.
However I am not able to get the USBX MSC to work to see the files by attaching the STM32H563 Nucleo board to a PC.
But the USBx stack doesn't seem to work. I have checked and used all the code from a ready STM32H573 discovery project give by ST Micro.
The USBPD stack uses the void USBPD_DPM_Notification(uint8_t PortNum, USBPD_NotifyEventValue_TypeDef EventVal) function to call start the USB interface.
But the USBPD_DPM_Notification() doesn't get called.
I am unable to get the USBx CDC ACM working along side Filex as well.
Solved! Go to Solution.
2024-10-24 10:24 AM
Hi @FBL ,
I got the USBx msc working with filex + levelx.
Increased the UX_THREAD_STACK_SIZE for the task "ux_slave_storage_thread" from 1024 to 1536 bytes.
The stack of this task overflowed when the USB host ( in my case Windows machine ) tried to read the media ( Nor flash device ).
2024-10-22 03:08 AM
Hello @sourcerrer
First, are you enabling the TrustZone?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-22 08:25 AM
Hi @FBL ,
I have not enabled TrustZone.
The device class does not get enumerated. i tried for both the ACM and storage class.
The ACM+HID ready example is working on my Nucleo-H563ZI board.
The USBPD is working. I had not added the stm32h5xx_nucleo_usbpd_pwr.c file in the BSP folder.
2024-10-23 09:55 AM
Hi @sourcerrer
If I understand correctly, ACM is not working alone. But works on ACM+HID example.
I propose you to start with ACM+HID and comment out ux_hid_thread!
Otherwise, can you point me directly to the issue linked to mass storage?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-24 10:24 AM
Hi @FBL ,
I got the USBx msc working with filex + levelx.
Increased the UX_THREAD_STACK_SIZE for the task "ux_slave_storage_thread" from 1024 to 1536 bytes.
The stack of this task overflowed when the USB host ( in my case Windows machine ) tried to read the media ( Nor flash device ).