Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现异常[Flash]Error: The ENV (@0x00117010) CRC32 check failed!,但是还是能写入和读取是什么原因 #169

Open
anikixx opened this issue Dec 20, 2024 · 1 comment

Comments

@anikixx
Copy link

anikixx commented Dec 20, 2024

[Flash]Error: The ENV (@0x00117010) CRC32 check failed!
[Flash]Error: The ENV (@0x00118010) CRC32 check failed!
出现了异常,但是还是能正常读写数据...

sector->remain = SECTOR_SIZE - SECTOR_HDR_DATA_SIZE; env_meta.addr.start = FAILED_ADDR; while ((env_meta.addr.start = get_next_env_addr(sector, &env_meta)) != FAILED_ADDR) { read_env(&env_meta); if (!env_meta.crc_is_ok) { if (env_meta.status != ENV_PRE_WRITE && env_meta.status!= ENV_ERR_HDR) { EF_INFO("Error: The ENV (@0x%08X) CRC32 check failed!\n", env_meta.addr.start); sector->remain = 0; result = EF_READ_ERR; break; } } sector->empty_env += env_meta.len; sector->remain -= env_meta.len; }

运行到这个地方出现这个警告是什么原因导致的呢?

@anikixx
Copy link
Author

anikixx commented Dec 20, 2024

我找到原因了,是硬件的w25q64的供电异常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant