摘要
随着当今宽带无线接入技术和移动终端技术的飞速发展,移动互联网得到了迅猛发展。Flash闪存作为一种非易失性存储器在智能移动终端中得到了非常广泛的应用。文中以S3C2410A处理器和RC28F256P30 Flash为平台,讨论了Flash在移动互联网应用中的常见问题,对Flash的互斥访问、操作结果状态判断以及地址对齐问题进行了实验分析。通过分析和实验验证说明,对Flash的读、写及擦除等操作需要互斥进行,各种操作不能出现交叉,否则将无法得到预期的结果;在写入、擦除等操作后需要对操作结果进行全面的状态判断,以免出现错误的结果;在对Flash访问时需要注意地址对齐问题,否则可能会出现数据的错位。通过遵守上面的原则,可以避免在Flash使用中的错误。
Along with the flying development of broadband wireless access and mobile terminal,mobile internet has developed very rapidly. As a kind of non- volatile memory,Flash has been used widely in smart mobile terminals. The common problems for Flash in mobile internet application have been discussed in this paper based on Samsung S3C2410 A processor and Intel RC28F256P30 Flash. It is proved through analysis and experiment that various operations to Flash should be mutually exclusive,they should not be interleaved,or you may not get the expected result. A full status check should be taken after word program,sector erase to avoid wrong result indication. And one should pay attention to the address alignment when using Flash,if the address is not aligned,the data wrote to Flash may get shifted unexpectedly. It can avoid the errors in using Flash according to above principles.
出处
《计算机技术与发展》
2016年第5期128-131,共4页
Computer Technology and Development
基金
国家自然科学基金资助项目(51205434
51275551)
重庆市教委科学技术研究资助项目(KJ1500935)