cancel
Showing results for 
Search instead for 
Did you mean: 

USB Mass Storage Stm32F4 Discovery is not saving data

hukhongcongtu26111993
Associate II
Posted on February 18, 2017 at 17:18

Hello!

I am doing a usb mass storage with stm32 f4 discovery with micro sd card to copy files from computer to micro sd card I was read at this link : 

http://microtechnics.ru/en/stm32-i-usb-mass-storage-sd-card/&sharpcomment-16154

http://microtechnics.ru/en/stm32-i-usb-mass-storage-sd-card/&sharpcomment-16154

. but my micro sd card is not saving files after I restart kit or unplug usb jack. sorry for my bad English!!! help me please!!! 

#usb-msc-mass-storage #mass-storage #mass
1 REPLY 1
Posted on February 18, 2017 at 23:05

Not something I can debug for you. You'd want to verify how the MicroSD card is connected on your board, and the pull-ups on the pins. Assuming this is an original STM32F4-DISCO board and you've wired a card/socket yourself. You'd want to build some test code to verify that the SDIO peripheral can successfully read and write the media.

You would also want to Eject and safely remove the MSC from the PC to ensure the data is flushed to the media from the caches.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..