SD Card Initialization on MIMXRT1050-EVK(B) using FreeRTOS and FatFs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD Card Initialization on MIMXRT1050-EVK(B) using FreeRTOS and FatFs

665 Views
michaelc77
Contributor II

Hi,

I have an issue trying to initialize the SD Card using FatFs. Please see attached code.

I have enabled FatFs, SDMMC, and flexio in my SDK manager (V2.4.2 SDK). I did enable SD Card support via SD_DISK_ENABLE in ffconf.h. 

I am getting several errors with the SDMMCHOST calls not being defined. The IDE is definitely seeing them if I right click and open declaration. If I comment out these errors, my code crashes when I try to mount the SD Card.

Has anyone else seen these issues before? I'm sure it will probably be a settings issue, but I'm just not sure where.

-Mike

0 Kudos
1 Reply

567 Views
michaelc77
Contributor II

So, I found FatFs SDK example that writes to the SD Card. It compiles and works great. I'll see how their init code works.

0 Kudos