Skip to main content
ISeed
Associate III
January 9, 2021
Question

f_open on SD card returns FR_NO_FILESYSTEM when SCB_EnableDCache() is called

  • January 9, 2021
  • 1 reply
  • 1065 views

Hi,

In my project, I need to use an SD card and also GUI taht requires dcache.

I noticed that when SCB_EnableDCache() is called in main(), f_open(..)  returns FR_NO_FILESYSTEM.

it works normally when it is SCB_EnableDCache() is not called.

I suppose I need to invalidate the DCache somehow, but how?

I tried calling SCB_InvalidateDCache() and SCB_CleanDCache() in SDMMC1_IRQHandler, but it didn't help.

I didn't use SCB_CleanInvalidateDCache_by_Addr because I don't know which (if any) address is relevant.

How can I fix this? thanks!

This topic has been closed for replies.

1 reply

Le Phuong
Associate II
June 14, 2021

i solved your problem with this configuration MPU:0693W00000Bat9EQAR.png