Search found 4 matches

by jackjr
Thu Sep 04, 2014 8:02 pm
Forum: STM32 Support
Topic: SPI2 with FatFS stuck waiting
Replies: 4
Views: 3367

Re: SPI2 with FatFS stuck waiting

Yes, this is it.
But for an obscure reason it was happening even when the sd card was present.

Now I just tried again with SPI2 and it worked…
I assume it was a bad solder joint or something… although I haven't changed anything since then.

Thanks for your support.
by jackjr
Thu Sep 04, 2014 4:35 pm
Forum: STM32 Support
Topic: SPI2 with FatFS stuck waiting
Replies: 4
Views: 3367

SPI2 with FatFS stuck waiting

Hi,

I designed a board with a STM32F051 mcu.
The SPI2 of the mcu is connected to a MicroSD socket.

When trying to connect to the SD card with mmcConnect(), it remains stuck in an infinite loop waiting the idle state.
(wait() in send_hdr()).

However, when trying the same code with the SPI1 ...
by jackjr
Sat Jun 28, 2014 11:01 am
Forum: STM32 Support
Topic: mmcConnect fails
Replies: 2
Views: 2286

Re: mmcConnect fails

You were right. The wires were too long.

Reducing the speed did solve the problem.

Thanks for your help!
by jackjr
Fri Jun 27, 2014 11:05 pm
Forum: STM32 Support
Topic: mmcConnect fails
Replies: 2
Views: 2286

mmcConnect fails

Hello,

I've a problem accessing a SD card using the MMC SPI driver.

I'm using a STM Nucleo board, with the STM32F030R8.
I mostly copied the code from the STM32F103-FATFS demo. The SD card is connected on the SPI2 bus.

In the mmcConnect function, the initialization part using the slow speed seems ...