ffffdddd3 发表于 2013-6-11 20:11:36

intel flash驱动问题!

我在配置文件中增加了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!这是什么意思?而且两个写操作没有作任何事!
希望版主解惑,谢谢!
页: [1]
查看完整版本: intel flash驱动问题!