cancel
Showing results for 
Search instead for 
Did you mean: 

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

ISeed
Senior

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!

1 REPLY 1
Le Phuong
Associate II

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