- STM32CubeIDE 1.6.0
- STM32CubeMX
- Tera Term
- STM32F411CEU6 (Black Pill Board)
- ๐ Image Link
- ๐ Image Link
- Using 8GB MicroSD (MicroSD capacity is not important)
- Using NS-SD01 SD Card module
- ๐ Image Link
- If the SD card module supports the SDIO interface, it can be tested.
- In addition, in this project, SD cards are detected using CD pin.
- ๐ Image Link
๐
apSDCardTest ํจ์์์ ์ ๊ณตํ๋ ํ ์คํธ ์ธ์ ๋ค์ํ ํ ์คํธ๋ฅผ ์ํ ๊ฒฝ์ฐ NOTE ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
stm32f411ceu6_fw_module โ src โ ap โ ap.c โvoid apSDCardTest(void){...}
๐
STM32์์ ์ ๊ณตํ๋ FatFs ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ API๋ฅผ ์ด์ฉํ๋ฉด SD Card ๋ด์ FAT32 ํ์ผ ์์คํ ๊ตฌ์กฐ ๊ธฐ๋ฐ์ File ์ ์ด (์์ฑ/W/R/์ญ์ /์ด๋/๋ณ๊ฒฝ ๋ฑ..)๊ฐ ์์ฃผ ์ฝ๊ฒ ๊ฐ๋ฅํด์ง๋๋ค. ์ด๋ฅผ ์ฐธ์กฐํ์ฌ ์ถ๊ฐ์ ์ธ ํ ์คํธ๋ฅผ ํ์๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค.
stm32f411ceu6_fw_module โ src โ lib โ FatFs โ src โ ff.h / ff.c
๐
โข SD Card Protocol์์ SDIO๋ก interfaceํ ๋ CD Pin์ ํ์์์ต๋๋ค. ์ด๋ ๋จ์ง SD Card ๋ชจ๋์์ ์ง์ํด์ฃผ๋ Pin์ ๋๋ค. SD ์นด๋๊ฐ ๊ฝํ๋ฉด(Detected), CD Pin์ High โ Low๋ก ๋์ํฉ๋๋ค.
๐
๐
โข ์ง์ FATFS ํ์ผ ์์คํ
์ ํฌํ
ํ์์ต๋๋ค.
When you build a project, you must exclude folders in the following paths from the build and debug entries:
stm32f411ceu6_fw_module โ src โ lib โ Core