armink/SFUD

IS25LP512M芯片:因未使能Quad IO,造成Quad IO读失败

jayleesat opened this issue · 1 comments

IS25LP512M芯片:因未使能Quad IO,造成Quad IO读失败

IS25LP512M芯片的IO2, IO3为复用引脚,需要在Status bit中使能Quad IO。
因此我在hardware_init中,添加代码使能Quad IO后,操作成功。
/* The flash all blocks is protected,so need change the flash status to unprotected before write and erase operate. */
......
/IS25LP512M/
if ((0x9D == flash->chip.mf_id) && (0x60 == flash->chip.type_id) && (0x1A == flash->chip.capacity_id)) {
result = sfud_write_status(flash, true, 0x40); /Enable Quad port/
}