Skip to main content
EKari.2
Associate II
July 19, 2021
Question

FATFS on external SDRAM Problem

  • July 19, 2021
  • 3 replies
  • 863 views

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.

This topic has been closed for replies.

3 replies

Tilen MAJERLE
ST Employee
July 19, 2021

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

SBEN .2
Visitor II
July 19, 2021

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
EKari.2Author
Associate II
July 19, 2021

Thank you. You solve my problem.:rose: