FatFs - f_open硬故障

时间:2016-10-14 07:21:10

标签: c stm32 fatfs

我正在尝试在与SPI连接的SD卡上写一些数据(我使用的是STM32F303)。

我可以安装SD卡但是当我想创建一个文件并打开它时,我在文件ff.c的函数f_open中的第3398行遇到了硬故障问题:

3395: fp->obj.fs = fs;      /* Validate the file object */
3396: fp->obj.id = fs->id;
3397: fp->flag = mode;      /* Set file access mode */
3398: fp->err = 0;          /* Clear error flag */
3399: fp->sect = 0;         /* Invalidate current data sector */
3400: fp->fptr = 0;         /* Set file pointer top of the file */

你有过这种类型的问题吗?你是怎么解决的?

由于 约旦

0 个答案:

没有答案
相关问题