Skip to main content
SKris.1616
Associate III
January 3, 2020
Question

f_write is returning with disc error

  • January 3, 2020
  • 2 replies
  • 874 views

Hi,

#FatFS​ #SDIO​ #STM32CubeIDE​ 

In STM32CubeIDE f_open and f_read is returning with FR_OK value. but when I used f_write with some data I am seeing that the return value is DISK_ERR. In this case file is not at all getting created in the SD card.

While looking into further, I am seeing some DCRC error flag is set due to this I am seeing DISK_ER.

Can anyone help with this?

Regards,

Suresh.

This topic has been closed for replies.

2 replies

dbgarasiya
Senior
January 8, 2020

debug code and find exatly where you failed ?

dbgarasiya
Senior
January 25, 2020

have you find error where you get stucked?