Skip to main content
Associate II
November 30, 2023
Solved

SPI mode and UHS-II mode not supported for STM32U5xx

Hello,

I have  a very basic question. In the spec of the U5 series there is this:

 

broilmont_0-1701362559552.png

Does that really mean that the U5 would not support talking to an SD card in SPI mode? I find it hard to believe since SPI seems to be the most basic way to interface with an SD card.

This topic has been closed for replies.
Mike_ST
Mike_STBest answer
ST Technical Moderator
November 30, 2023

Hello,

I guess they wanted to say that the SPI mode is not supported through the SDMMC block.

You have to use a dedicated SPI block instead.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 

4 replies

AScha.3
Super User
November 30, 2023

why you want use spi for sd-card, when you can have much faster sdmmc access ?

you can use spi, but this is up to you; and you have to write the low level access yourself.

its not supported by the HAL libs.

If you feel a post has answered your question, please click on " Best Answer ".
Mike_ST
Mike_STBest answer
ST Technical Moderator
November 30, 2023

Hello,

I guess they wanted to say that the SPI mode is not supported through the SDMMC block.

You have to use a dedicated SPI block instead.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
broilmontAuthor
Associate II
December 1, 2023

I think this makes the most sense. The Simplified specs v6 states:

broilmont_0-1701416486040.png

I'm guessing it's simply restating this, since in the older L4 series we have:

broilmont_1-1701416663310.png

Anyways, it's not so much important I just found the sentence curious. I believe SPI mode can still be useful in some applications where we don't have access to numerous pins.

Tesla DeLorean
Guru
November 30, 2023

Pretty sure it supports a basic 1-bit mode at initial and normal clock rates.

What might not work are really antiquated MMC cards from before the dawn of time. Assumption that you have SD, SDHC, SDXC cards or eMMC device that will clock at 25 or 50 MHz out of the gate.

Full Size 128MB cards? who cares at this point?

Pretty sure it could do 8-bit MMC +Plus cards if you could find a socket in current production.

Only has a transceiver on SDMMC1, up to 4-bit on SDMMC2

eMMC typically doesn't need a transceiver

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