Coder Social home page Coder Social logo

Comments (2)

doctor1cong avatar doctor1cong commented on August 31, 2024

是的,我也遇到这个问题,第一次初始化时如果用了操作系统的锁功能会出现死锁卡死,我的环境是:STM32F429+FreeRTOS.使用互斥锁会卡死在: /* all sector header check failed */
if (check_failed_count == SECTOR_NUM) {
FDB_INFO("All sector header is incorrect. Set it to default.\n");
fdb_kv_set_default(db);
},我看好多人反馈这个问题了,作者是不继续维护了吗?

我的解决方法:进入fdb_kv_set_default()前先解锁。
/* all sector header check failed /
if (check_failed_count == SECTOR_NUM) {
FDB_INFO("All sector header is incorrect. Set it to default.\n");
/
unlock the KVDB */
db_unlock(db); //if not unlock will cause a deadlock in "fdb_kv_set_default(db);"
fdb_kv_set_default(db);
}

from flashdb.

armink avatar armink commented on August 31, 2024

我这边没有用过 FreeRTOS 呢,RT-Thread/Zephyr 及 PC 系统 Linux/Windows/MACOS + GCC 都没有问题的

欢迎提交 PR 哈

from flashdb.

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.