Giter VIP home page Giter VIP logo

Comments (3)

smartmx avatar smartmx commented on June 3, 2024

意思是:
重试次数中,每次都没写入,endbyte的flash值还是默认擦除后的0xff。
读取的时候,的确可能不是最新的。
当时考虑了写入错误,理论上写入错误只可能是0恢复不到1。1是必然可以写成0的,这里的确没考虑没写入的情况。

from tfdb.

smartmx avatar smartmx commented on June 3, 2024

目前看来有两种方案:

  1. tfdb_set,每次写入后检测一下endbyte位置的数据,如果是TFDB_VALUE_AFTER_ERASE,则在相同地址重新写入。
  2. tfdb_get中,从末尾开始读取。

看起来第2种更合适。

from tfdb.

smartmx avatar smartmx commented on June 3, 2024

@guanjianhe 已经修改,我这边测试过暂时没发现问题,有时间麻烦你也可以测一下。分支 fix-write-skip

from tfdb.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.