Senior
January 8, 2020
Question
Why stm32 usb msc not work with freertos?
- January 8, 2020
- 3 replies
- 1663 views
I use STM32746G-Discovery to learn usb msc.
I copied STM32Cube_FW_F7_V1.15.0\Projects\STM32746G-Discovery\Applications\USB_Device\MSC_Standalone and it works fine.
but when i use Freertos to drive msc, the PC popup a dialog that the device can't be recognized.
the attachment is the files my project use.
I almost changed nothing,just use a thread to call line below:
I think the interrupter priority may be the cause.
USBD_Init(&usbd_device,&MSC_Desc,0);
USBD_RegisterClass(&usbd_device,USBD_MSC_CLASS);
USBD_MSC_RegisterStorage(&usbd_device,&USBD_DISK_fops);
USBD_Start(&usbd_device);