Accueil blog

Debug

SD card access freeze on LPC1788 with Chan FatFS

While using Chan FatFS library, I encountered frequent system freezes on my MOD-LCD4.3 board when performing read or write operations on the SD card. The board, which is based on the LPC1788 Cortex M-3, features an SD card connector. The system is running FreeRTOS and utilizes the MCI interface from NXP (lpc177x_8x_mci.c) in DMA mode for SD card access with a custom low-level driver which implements disk_status(), disk_initialize(), disk_read(), disk_write(), and disk_ioctl() operations. The freeze was not systematic, and each SD card access freeze on LPC1788 with Chan FatFS