file system cache problem on LPC1788

LPC1788 with SDHC card attached using 4 data lines, e.g. not SPI. I'm using MDK-PRO 4.60 and my project is RTX based. I'm using networking and the RL-filesystem, with MCI_LPC177x_8x as my memory card driver.

When "File System Cache" is enabled (any value) data transfers to the SDHC card fail. A small fragment, which is equal in size to the FS cache size, is the only thing written to the SDHC card. The WriteBlock routine in the MCI driver fails -- I suspect a DMA issue.

When "File System Cache" is turned off, things are working OK, albeit slowly.

Do I need to relocate the FS cache to any particular place in memory? I see some notes about LPC23xx and FS cache location, but so far I've not read anything about LPC1788.

Parents
  • I haven't worked with DMA on the 17xx chips, but the 23xx chips have multiple separate RAM blocks and doesn't allow DMA transfers for the 32kB of main RAM to dedicate the full memory bandwidth for the processor core. The secondary RAM blocks are on a separate bridge together with the peripherial hardware and supports DMA.

Reply
  • I haven't worked with DMA on the 17xx chips, but the 23xx chips have multiple separate RAM blocks and doesn't allow DMA transfers for the 32kB of main RAM to dedicate the full memory bandwidth for the processor core. The secondary RAM blocks are on a separate bridge together with the peripherial hardware and supports DMA.

Children
More questions in this forum