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

The controller may accidentally lose setting data #145

Open
auxp opened this issue Feb 22, 2025 · 4 comments
Open

The controller may accidentally lose setting data #145

auxp opened this issue Feb 22, 2025 · 4 comments

Comments

@auxp
Copy link

auxp commented Feb 22, 2025

There were no abnormal operations.All settings data is lost, just like sending $RST*

@terjeio
Copy link
Contributor

terjeio commented Feb 22, 2025

This can happen if NVS memory (often flash) is bad/starting to wear out. Data is checked against a CRC, if this fails settings (and offsets etc.) are reset,

@auxp
Copy link
Author

auxp commented Feb 22, 2025

如果 NVS 内存(通常是闪存)损坏/开始磨损,则可能会发生这种情况。根据 CRC 检查数据,如果失败,则重置设置(和偏移量等),

Can this problem be solved? This is unexpected and may occur every few days, weeks, months, or even longer

@terjeio
Copy link
Contributor

terjeio commented Feb 22, 2025

Can this problem be solved?

The best option for NVS memory is to use an EEPROM, or even better FRAM since it has practically infinite number of write cycles.
It could be solved by remapping NVS memory to another area of flash if flash wear out is the issue (or implement wear levelling).

@auxp
Copy link
Author

auxp commented Feb 22, 2025

这个问题能解决吗?

NVS 内存的最佳选择是使用 EEPROM,甚至更好的 FRAM,因为它几乎具有无限数量的写入周期。如果闪存磨损是问题所在,_可以通过_将 NVS 内存重新映射到闪存的另一个区域来解决(或实施磨损均衡)。

Okay, thank you

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

2 participants