初级会员

- 积分
- 188
- 金钱
- 188
- 注册时间
- 2012-11-16
- 在线时间
- 6 小时
|

楼主 |
发表于 2013-8-27 12:48:40
|
显示全部楼层
回复【5楼】a2696026:
回复【4楼】正点原子:
那就根据fatfs的返回值找原因了。
---------------------------------
恩 我把例程上的和我移植过去的返回值对比下了 发现在mf_write上的返回值是不同的
Begin Write file...
Write data len:512
Write Error:9(例程上的是:0)
Write data over.
这个是什么错误?
---------------------------------
错了,是因为mf_opende 的返回值是1,对应的事A hard error occurred in the low level disk I/O layer。 然后才是mf_write上的返回值是9,但是在例程上都可以,换个地方就不行了? 这个是 mf_open("0:123/sub2/sub3/read.txt", FA_CREATE_ALWAYS | FA_WRITE); |
|