GithubHelp home page GithubHelp logo

自动更新问题 about easyflash HOT 6 CLOSED

armink avatar armink commented on May 19, 2024
自动更新问题

from easyflash.

Comments (6)

armink avatar armink commented on May 19, 2024

在开启EF_ENV_AUTO_UPDATE后,每次重新开机都会擦写Flash。
正常是只有你修改了EF_ENV_VER_NUM 才会更新 env。

怀疑你是不是用的 demo 中的那个 boot counts 功能,那个是每次开机都自动加一,然后存储的。

from easyflash.

outely avatar outely commented on May 19, 2024

我不是使用demo.
我尝试在EfErrCode ef_load_env(void)中增加
ef_port_read(get_env_system_addr() + ENV_PARAM_INDEX_VER_NUM * 4, &env_cache[ENV_PARAM_INDEX_VER_NUM] , 4);后,就不会出现每次重新开机都会擦写Flash了。因为我找不到其它地方有开机加载Flash中的EF_ENV_VER_NUM到env_cache[ENV_PARAM_INDEX_VER_NUM]。

from easyflash.

armink avatar armink commented on May 19, 2024

好像确实有问题。方便提一个 pr 吗?

from easyflash.

armink avatar armink commented on May 19, 2024

在 env_auto_update 里加感觉就可以了

from easyflash.

outely avatar outely commented on May 19, 2024

嗯,在env_auto_update()中添加更方便。😃

from easyflash.

armink avatar armink commented on May 19, 2024

fixed in #26

from easyflash.

Related Issues (20)

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.