这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 请教:关于tffsDevFormat

共1条 1/1 1 跳转至

请教:关于tffsDevFormat

菜鸟
2008-09-26 16:26:58     打赏
我用的flash是Intel的28f128,驱动是直接在Tornado自带的28f008上改的。
程序中调用tffsDrv返回OK,但调用tffsDevFormat返回fail。
我在i28f008Erase、i28f008Identify、i28f008Write的开始均加了printf,但什么输出都没有。
请教高手,可能是什么地方的问题,最好能把tffsDevFormat的具体过程讲一下,谢谢!

另外tffsShow也总是返回失败
-> tffsShowAll
TFFS Version 2.2
0: **** communication failed with error -1 ****
value = 48 = 0x30 = '0'

看起来应该是这里的问题:
status = tffsRawio (driveNo, TFFS_GET_PHYSICAL_INFO, (int)&info, 0, 0);
if (status != OK)
{
        printf ("%d: **** communication failed with error %d ****n",
                driveNo, status);
        return;
}

tffsRawio是不是会去调用MTD的Identify?



关键词: 请教     关于     tffsDevFormat    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]