Skip to main content
Associate
Jun 22, 2024 7:40 AM UTC
Question

STM32L4 SPI SD Card with FATfs and USB MSC

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

This topic has been closed for replies.

1 reply

ST Technical Moderator
Aug 14, 2024 10:06 AM UTC

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL