STM32 Audio Recorder 2: SD Card || SDIO and FatFs stack

Описание к видео STM32 Audio Recorder 2: SD Card || SDIO and FatFs stack

In this video, you will learn how to use FatFs stack and SDIO peripheral along with STM32CubeMx.

STM32 Introductory Course:
https://www.steppeschool.com
https://www.steppeschool.com/courses/...

STM32 HAL API: IMU Sensor based Attitude Estimation:
https://www.steppeschool.com/courses/...

CODE:
Mounting an SD card:
sd_result = f_mount(&sdCard,SDPath, 1);

Opening a file:
sd_result = f_open(&testFile ,(void*)file_name, FA_WRITE|FA_CREATE_ALWAYS);

Writing to the file:
sd_result = f_write(&testFile,(void *)test_text, (UINT)sizeof(test_text), (UINT*)&temp_number);

Closing the file:
f_close(&testFile);

HARDWARE
Board: STM32f407G-DISC1
https://www.st.com/resource/en/user_m...
https://www.digikey.com/en/products/d...

Microphone: SPH0645LM4H-B
https://cdn-shop.adafruit.com/product...
https://www.adafruit.com/product/3421

SD card slot:
https://www.sparkfun.com/products/12941
https://www.digikey.com/es/products/d...

0:00 Introduction
0:21 SDIO configuration
01:17 SDIO clock divide factor explanation
03:10 FatFs configuration
05:07 Creating header and source files
06:17 f_mount function
07:53 Creating a file using f_write function
08:50 Writing to the file using f_write function
10:45 Debugging the code

Комментарии

Информация по комментариям в разработке