armink / SFUD

An using JEDEC's SFDP standard serial (SPI) flash universal driver library | 一款使用 JEDEC SFDP 标准的串行 (SPI) Flash 通用驱动库
MIT License
1.25k stars 444 forks source link

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

Open jayleesat opened 1 year ago

jayleesat commented 1 year ago

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/ }