QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3755|回复: 5

在nandflash上格式化为fat16文件系统的程序源代码

[复制链接]
发表于 2005-8-7 17:24:41 | 显示全部楼层 |阅读模式
这个程序是对nandflash进行读、写的进一步扩充,能够格式化为fat16文件系统,离lumit的目标实现u盘功能更进了一步。操作步骤与test-nandflash程序一样。
(1)dn
(2)发送uue
(3)go运行

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2005-8-12 13:26:46 | 显示全部楼层
测试结果:
发现程序会不断输出

Cluster 0,Sector 0,Byte 455=ff
Cluster 0,Sector 0,Byte 456=ff
Cluster 0,Sector 0,Byte 457=ff
Cluster 0,Sector 0,Byte 458=ff
Cluster 0,Sector 0,Byte 459=ff
Cluster 0,Sector 0,Byte 460=ff
Cluster 0,Sector 0,Byte 461=ff
Cluster 0,Sector 0,Byte 462=ff
Cluster 0,Sector 0,Byte 463=ff
Cluster 0,Sector 0,Byte

到400多的地方就死掉了.  我把输出的语句注释掉,重新编译后执行结果如下:

\>go
go at address 0x8000
REFEXTCON = ce2983fd
Format Nand-flash Successfully!
SectorsPerCluster=32
BytePerSector=512
FirstFATSector=1
FATsectors=4
FirstDirSector=9
FirstDataSector=32
RootDirCount=368
RootDirSectors=23


这个是正确的输出结果么?
回复

使用道具 举报

发表于 2005-8-12 13:29:47 | 显示全部楼层
要是能做一个简单的 shell, 支持一些文件系统基本命令,例如 mkdir/rmdir/cp/cat/ 等等就好了  
回复

使用道具 举报

 楼主| 发表于 2005-8-13 11:23:41 | 显示全部楼层
斑竹:
那些输出信息是为调试时用的,我通过读取这些这fat文件系统参数信息判断是否正确写入flash。有时间的话争取响应斑竹建议,实现一些文件系统的基本命令!! :-)
回复

使用道具 举报

发表于 2005-8-21 03:32:23 | 显示全部楼层
chw75好样的哦!佩服!向您学习中!
回复

使用道具 举报

 楼主| 发表于 2005-8-21 17:10:58 | 显示全部楼层
不好意思!我也不知道写的对不对!只有把这部分代码移植到u盘功能中,windows2000或xp能够识别的话那样才有说服力!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-12 03:22 , Processed in 0.090041 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表