cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 SPI SD Card with FATfs and USB MSC

Sreekanth
Associate II

Using stm32f767zi microcontroller and sd interfaced with spi and interfacing usb_host_msc code below tutorial following its working only when i sperately using but interface with sd card with pi below issue is getting 

https://embetronicx.com/tutorials/microcontrollers/stm32/stm32-usb-host-msc-connect-pendrive-to-stm32/

Below output getting like this and stucks in MSC_Read_Inquiry

USB Device Connected.USB Device Reset Completed.PID: 5607h.VID: 3f0h.Address (#1) assigned..Manufacturer : HP.Product : v210w.Serial Number : AA00000000005026.Enumeration done..This device has only 1 configuration..Default configuration set..Switching to Interface (#0).Class : 8h.SubClass : 6h.Protocol : 50h.MSC class started..Number of supported LUN: 1.LUN #0: .  

#usb #sdcard #MSC

1 REPLY 1
FBL
ST Employee

Hi @Sreekanth 

Could reformulate the issue is linked to STM32L4 or F767 product? Typically, USB Host MSC stack may require more memory. Try to increase the stack and heap size to ensure there is enough memory available for the USB stack.

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.