cancel
Showing results for 
Search instead for 
Did you mean: 

FATFS on external SDRAM Problem

EKari.2
Associate II

Hi

I work on stm32f746 discovery and I want to configure FATFS on external sdram. I use STM32CubeIDE 1.6.1. when I create my project and mount disk, return error (value 13 = FR_NO_FILESYSTEM). does everyone know about this problem or is there any sample code to solve this problem ?

thanks.

3 REPLIES 3
Tilen MAJERLE
ST Employee

You may need to format disk first with file system. Refer to f_mkfs function from FATFS package.

SBEN .2
Senior II

Hello @Community member​ ,

Just to be sure, are you using the external SDRAM as a FATFS disk? It this is the case, @Tilen MAJERLE​ 's answer is what you need. You'd also need to "reformat" the external SDRAM at each power cycle.

Best regards,

@SBEN .2​ 

EKari.2
Associate II

Thank you. You solve my problem.:rose: