Search found 6 matches

by Beginner
Sat Apr 27, 2019 4:28 pm
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

Re: STM32F4Discovery USB Mass Storage via OTG

Yes it has, I did what you suggested and now it works perfectly. Thanks a lot !
by Beginner
Sat Apr 27, 2019 11:35 am
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

Re: STM32F4Discovery USB Mass Storage via OTG

Hi Giovanni !

Thanks for the hints, I adapted the code from /demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS and it works.

Are InsertHandler/RemoveHandler supposed to periodically check the presence of SD card in the reader and connect/disconnect ? It seems that I need the remove and put the SD ...
by Beginner
Mon Apr 22, 2019 5:58 pm
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

Re: STM32F4Discovery USB Mass Storage via OTG

Hi,

I activated MMC_SPI, SPI and SPI1, then I configured FatFS but now, nothing happens, I expected to create a simple test.txt at the root of my SD card. I tried the following :

FATFS fs;
FIL fil;

static SPIConfig hs_spicfg = {false, NULL, GPIOB, 5, 0, 0};
static SPIConfig ls_spicfg = {false ...
by Beginner
Mon Apr 22, 2019 12:32 am
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

Re: STM32F4Discovery USB Mass Storage via OTG

Hello again,

I bought this SD card module . I would like to wire it to use it as in this example to use it with FatFS on my STM32F4Discovery.

Where should I look for which pins to use ? And how to define mmccfg (ls_spicfg and hs_spicfg) ?

Would :
nss - pa4
mosi- pa7
miso - pa6
sck - pa5 ...
by Beginner
Sat Apr 06, 2019 2:36 pm
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

Re: STM32F4Discovery USB Mass Storage via OTG

Thank you Giovanni for the reply.

Is this the required module to do it with SD card ?

I wanted to do it on a USB key because I already have the hardware (USB key + OTG cable) and this kind of SD card reader seems to be limited to 2Go.

If anyone is able to provide me a link to someone's code who ...
by Beginner
Fri Apr 05, 2019 11:37 pm
Forum: STM32 Support
Topic: STM32F4Discovery USB Mass Storage via OTG
Replies: 10
Views: 5504

STM32F4Discovery USB Mass Storage via OTG

Hello,

I have been trying to learn it by myself but it seems too complicated to me. I would like to store data in a .txt file, for example, on a USB key connected via OTG on a STM32F4Discovery using FatFs. Is it possible to implement it using ChibiOS ?

Regards,
Beginner