LPCOpen SD card drivers and Chan FatFs not compatible?

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

LPCOpen SD card drivers and Chan FatFs not compatible?

1,003 Views
jameso
Contributor II

The 'periph_sdmmc' example (from LPCOpen v2.10 for the LPC1788 EA board) uses Chan FatFs with LPCOpen SD card drivers. However, the disk I/O function checker from the elm-chan FatFs webite (http://elm-chan.org/fsw/ff/res/app4.c) fails with the LPCOpen drivers.

Is there a fix to the LPCOpen library to make it fully work with Chan FatFs?

Alternatively, is there an example similar to 'periph_sdmmc' using FreeRTOS + FAT instead of the Chan FatFs?

Thank you.

0 Kudos
1 Reply

679 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi James O,

   The lpcopen code still use the older fatfs system.

   Your code http://elm-chan.org/fsw/ff/res/app4.c should use the new fatfs, that's why you run it fails.

   If you want to use the new app, you also need to modify the lpcopen fatfs file to the new fatfs lib.

   We still don't have the updated version, so if you need it, you can try to replace the old fatfs system file with the newest lib file by yourself.

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos