|
本帖最后由 njsolo 于 2022-11-7 11:43 编辑
读写擦函数都在裸机上测了,是OK的:
- vol.write = sysMtdWrite;
- vol.erase = sysMtdErase;
- vol.read = sysMtdRead;
- vol.map = sysMtdMap;
复制代码
但是进入VxWorks命令行后,格式化FLASH却报错:
-> sysTffsFormat
Formatted 16 of 16 units = 100.0 %
tffsDevFormat=0xffffffff
value = -1 = 0xffffffff
代码中,加入打印信息,却无法打印:
- // target\config\my_bsp\sysTffs.c
- STATUS sysTffsFormat (void)
- {
- ...
- status = tffsDevFormat (0, (int)¶ms);
- //这里有打印!!
- ...
- }
- //target\src\tffs\tffsDrv.c :
- STATUS tffsDevFormat
- (
- int tffsDriveNo, /* TrueFFS drive number (0 - DRIVES-1) */
- int arg /* pointer to tffsDevFormatParams structure */
- )
- {
- tffsDevFormatParams defaultParams = TFFS_STD_FORMAT_PARAMS;
- tffsDevFormatParams *devFormatParams;
- IOreq ioreq;
- FLStatus status;
- myPrintf("in tffsDevFormat 1\r\n"); //此处无打印!!!!!
- }
复制代码
为什么tffsDevFormat ()无打印,难道是用的库函数,不是target\src\tffs\tffsDrv.c? |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|