[update][flash] ignore flash mid value

This commit is contained in:
jzlv 2023-01-18 13:52:48 +08:00
parent 47d0f9cd38
commit 4e77bb637a

View File

@ -467,7 +467,7 @@ int ATTR_TCM_SECTION bflb_flash_init(void)
L1C_Cache_Flush();
#endif
bflb_irq_restore(flag);
if (g_flash_cfg.mid != 0xff) {
if (g_flash_cfg.mid != 0xff && g_flash_cfg.mid != 0x00) {
return 0;
}
clk_delay = g_flash_cfg.clk_delay;