When talking about Embedded Linux driver development, I found many students interested in the SD card driver. I will discuss it with you later. In many technical forums,
Many people have asked this question, so I want to write it and hope it will be helpful for everyone's learning. To learn how the SD card works, you must first understand the SD card protocol.
It can be easily downloaded online. After learning about the protocol, you can look at the following development ideas.
First, let's take a look at how to read and write SD cards on the S3C2410 operating system. The process can be divided into three major steps: initializing the SD card, writing the SD card, and reading
SD card; the following process is tested through the realview-MDK environment.
I. initialize the SD card
Ii. Write SD card
SD card writing can be divided into three methods: poll, interrupt, DMA
(1) poll write
(2) interrupt write
(3) DMA write
3. Read SD card
SD card reading can also be divided into three methods: poll, interrupt, DMA
(1) poll read
(2) interrupted read
(3) DMA read