Question
Fatfs SD card on STM32152L-Discovery board
Posted on August 27, 2012 at 15:40
Hi,
I am working on read,write to a SD card using SPI method on board STM32152L-Discovery board. Now I can create a folder, create a file, and read, write. But when I want to get the capacity of the SD card, no matter I use 1GB SD card or 2 GB SD card, I get DeviceSize 2037672302, CardCapacity 1380012885, CardBlockSize 12628。 Any ideas? Thank you.