Skip to main content
sram.1
Associate II
March 31, 2023
Question

using spi to read SD card in STM32L452RE without file handling methode. Becuse i am fresher i dont no how to but i tried my level best but not gettin please help me i tride useing SD commands

  • March 31, 2023
  • 3 replies
  • 1456 views

..

This topic has been closed for replies.

3 replies

Technical Moderator
March 31, 2023

Hello @sram.1​ and welcome to ST Community!

Here is a post that might help you.

If it doesn't help, you may need to elaborate your question, so that we can help you.

Thanks!

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
sram.1
sram.1Author
Associate II
April 1, 2023

tq for kind information that was already done that was using file handling methode but know i do with out file handling methode to read the SD card i collect some information that was possible to do using SD commands but i don't know properly

Tesla DeLorean
Guru
March 31, 2023

The SPI based implementation is generally demonstrated in the AdaFruit Shield BSP code.

STM32Cube_FW_L4_V1.14.0\Drivers\BSP\Adafruit_Shield\stm32_adafruit_sd.c

The cards work at a block device level.

The FATFS DISKIO layer then sits on top of the SPI, SDIO or SDMMC layer.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
sram.1
sram.1Author
Associate II
April 1, 2023

tq for your reaply but i am not geting what are you telling but i collect some information about that we can do in stm32 through SPI we can read the SD card by using SD commands previously i done using file handling system but i do with out file handling system

CKugl.1
Senior
April 2, 2023

I have an SD/SPI block device driver for STM32L412KB at sd_driver. It has some dependencies on FreeRTOS. You might be able to adapt that.