29. STM32CubeIDE SD CARD. SPI with STM32F103C8T6

preview_player
Показать описание
STM32 Blue Pill for beginners
Рекомендации по теме
Комментарии
Автор

There are two additional info
1. Make sure sd card module gets 5V. Try separate power supply if possible
2. When you format SD card in windows10 with FAT32, select 4096bytes for allocation unit size.

NizarMohideen
Автор

Thanks again for another good tutorial :) I wasted 6 hours on official tutorials trying to get an SD Card working with SDIO, gave up and came to try your SPI tutorial and it works :) Now I have it working on both my C8T6 and ZET6

SiggyPony
Автор

Looks very helpful. I'll be following this tutorial later

L.Lagrange
Автор

Great tutorial! I appreciate your generousity on giving lessons, I hope you make same tutorial using the chip l293 for both DC motor and stepper motor, again thank you so much❤

coolchriss
Автор

Thank You Nizar you are the best! Your explanation is very clear and code is working [just change f_lseek function to -> f_lseek(&fil, f_size(&fil)); ], also thanks for SD reformatting info!

kajtus
Автор

Nice tutorial, Sir. Thank you very much!

jaimecordoba
Автор

Very good tutorial I tried it with the Nucleo STM32F446RE I had to make a few minor changes but got everything working just fine. The only question I have...Where do I find the additional SD card commands like: create directory, delete directory, delete file, rename file and append to file. Are these functions available within this library somewhere???

carlosbarberis
Автор

Thank you very much for your patient guidance. I have benefited a lot,thank you❤!

JitaoWu
Автор

I've seen many of your super interesting videos! Is this application also adaptable to stm32g431kb?

michaelbertocchi
Автор

Code works fine. However, if you use 3.3V SD card module, you may need to add extra capacitor (47uF? or more) between 3.3V and GND. Without it SD seem to draw too much current and project no longer works.

lc
Автор

I can't seem to get this to work at all with the Nucleo F446RE Board. Everything looks correct, but I can't get anything to write to the SD card... I'm using SPI2, pins PB13, 14, and 15. My CS Pin is on PB12. Everything programs, just no file on the SD card...

firebirdonfire
Автор

HELLO FROM POLAND NIZAR THANK YOU FOR WORKING CODE

eklimann
Автор

Hello, in this tutorial, I saw you to use SPI 1 for communicating between STM32F103 and SD card module. I want to ask you that dose it work well if I use SPI 2? If it is OK, do I have to change any things in SD library?. Thank you so much!

trungkiennguyen
Автор

kan ikke lige få det til at virke med STM32F103RT6. compiler fint. kan bare ikke med den version af Cubmx / middelware som jeg har adgang til.

maltheengstrm
Автор

It worked with 8MHZ in all the clocks, with the stm32f103c8t6 and stm32f411e board. What should I have to modify if I want to increase the clock frequency for example to 72 Mhz?

angelramirezmartinez
Автор

Thanks, my friends. It's helpful. I have a class10 card worked but a class4 card can't work at all. I don't know the reason.

shenghuang
Автор

Dear sir, can u make a video that use another SPI product like Matrix led SPI; 7_seg led SPI ? thank u so much for reading my comment

p.kaikieu
Автор

Hi again bro, a question, In which file is the function f_lseek(&fil, fil.fsize);?, because I can't find it in the files

gabrielcabrerasanchez
Автор

Hi @NizarMohideen, In fatfs_sd.c GET_SECTOR_SIZE command always returns 512. So i cannot understand what is the meaning of setting MAX_SS config to 4096 in CubeMX. Maybe i dont understand something here?

kamarmeredow
Автор

Is the procedure applicable on stm32f401 nucleo board?

bharatpatidar