Precautions for using stm32 official SD card driver

Publisher:静心静气Latest update time:2018-08-21 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Friends who use the SD card driver provided by the stm32 CUBE library should note:

1. Applicable to MMC cards. I haven't tested it. MMC cards are now collectibles. Who would still use them? So, ST team, please be rigorous.

2. The SD card initialization failed because after sending CMD0, CMD1 was sent (CMD1 is a unique command of MMC card, SD card does not need to send CMD1), and the read and write driver function also had problems (the block size of SD card was modified regardless of the situation, all set to 512 bytes), because of this, I wasted 3 days of time, and had no choice but to rewrite the driver myself. So, if you want to use SD card in the project, you must modify the driver.

3. In fact, many official routines have bugs, so don’t be too superstitious about official things.

In short, the official version also has pitfalls, so use it with caution!


Keywords:stm32 Reference address:Precautions for using stm32 official SD card driver

Previous article:STM32 SD card test, using Cubemax configuration
Next article:STM32 Development Board Getting Started Tutorial (Thirteen) - SPI Mode Read and Write SD Card

Recommended ReadingLatest update time:2024-11-22 16:20

STM32 USB-HID communication migration steps
Recently, I found that many people are very interested in STM32's USB communication. It is indeed a long process to understand the USB communication protocol. However, USB HID communication is very simple, whether it is the design of the host computer or the programming of the STM32 program. I just think that many peop
[Microcontroller]
STM32 learning: the three main parts of STM32F4XX
Three major modules: power supply, IO port and clock. 1. First, let's take a look at the power supply. Here is the power supply block diagram From the above we can see that the power supply provides power to three key parts inside. The first is to power the ADC, which needs no further explanation. The second is the ba
[Microcontroller]
STMicroelectronics updates TouchGFX software, adds video features to enrich STM32 user experience
STMicroelectronics updates TouchGFX software, adds video capabilities, enriches STM32 user experience China, November 5, 2021 - STMicroelectronics has released the latest version of TouchGFX Version 4.18, its graphical interface development software for STM32* microcontrollers (MCUs), which adds video
[Embedded]
STMicroelectronics updates TouchGFX software, adds video features to enrich STM32 user experience
STM32 - Hardware IIC slave communication
Preface:   According to the information on the Internet, most netizens said that there is a bug in the hardware IIC of STM32, which is easy to get stuck when reading and writing. I also got stuck when debugging, but I finally debugged it bit by bit and it worked. This article will record some of my experience in debug
[Microcontroller]
STM32 - Hardware IIC slave communication
Explanation of the code for configuring the system clock of STM32
By default, ST configures the system clock to 72MHZ.  The following seven steps are the function of setting the system clock, which is taken from the library file system_stm32f10x.c. The interconnection-related code is deleted for easy analysis and numbered. There are seven steps in total. This order is also the syste
[Microcontroller]
Stm32 clock analysis
Most of the analysis materials come from the opendev forum. All I did was add some of my own analysis and collation. Due to my limited personal ability, omissions are inevitable. I welcome your corrections. The Stm32 clock structure diagram is as follows, ( http://www.openedv.com/posts/list/302.htm ) The analysis
[Microcontroller]
Stm32 clock analysis
STM32 issues regarding external interrupt lines, interrupt sources and interrupt service functions
Interrupt line problem: From the above figure, we can see that the EXTI0 interrupt line shared by PA0, PB0...PG0, and the EXTI1 interrupt line shared by PA1, PB2...PG1, that is, in the programming (as shown in the following library file), correspond to 16 interrupt lines. The last three are dedicated interrupt li
[Microcontroller]
STM32 issues regarding external interrupt lines, interrupt sources and interrupt service functions
Deep thinking on the serial port of STM32 microcontroller
In fact, when learning to use a single-chip microcomputer, everyone often thinks it is simple and passes it quickly, but there are actually some things that are worth thinking about. When I wrote programs before, I usually sent data, so I just called the rewritten printf() function. But this project uses NRF full-dupl
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号