QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3365|回复: 0

intel flash驱动问题!

[复制链接]
发表于 2013-6-11 20:11:36 | 显示全部楼层 |阅读模式
我在配置文件中增加了Flash的配置
mem_bank: map=F, type=RW, addr=0x28000000, size=0x01000000
flash: type=28F128J3A, base=0x28000000, size=0x01000000

在boot运行检测Flash时提示:Flash in current config does not support halfword write at 0x28000000

然后,我到skyeye驱动源码中一看(dev_flash_intel.c),就傻了。如下:
int flash_intel_write_byte (struct device_desc *dev, uint32 addr, uint8 data)
{
        int ret = ADDR_HIT;
        printf ("\nFlash in current config does not support halfword write at 0x%x", addr);
        return ret;
}
int flash_intel_write_halfword (struct device_desc *dev, uint32 addr, uint16 data)
{
        int ret = ADDR_HIT;
        printf ("\nFlash in current config does not support byte write at 0x%x", addr);
        return ret;
}
写byte时提示不支持halfword,写halfword时提示不支持byte!这是什么意思?而且两个写操作没有作任何事!
希望版主解惑,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 19:27 , Processed in 0.112301 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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