Comments (3)
意思是:
重试次数中,每次都没写入,endbyte的flash值还是默认擦除后的0xff。
读取的时候,的确可能不是最新的。
当时考虑了写入错误,理论上写入错误只可能是0恢复不到1。1是必然可以写成0的,这里的确没考虑没写入的情况。
from tfdb.
目前看来有两种方案:
- tfdb_set,每次写入后检测一下endbyte位置的数据,如果是TFDB_VALUE_AFTER_ERASE,则在相同地址重新写入。
- tfdb_get中,从末尾开始读取。
看起来第2种更合适。
from tfdb.
@guanjianhe 已经修改,我这边测试过暂时没发现问题,有时间麻烦你也可以测一下。分支 fix-write-skip
from tfdb.
Related Issues (4)
- 建议 数据分区,提供配置表 HOT 2
- 关于块管理的一些问题 HOT 33
- 关于无法逆序写入的stm32L4系列问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfdb.