memfault / interrupt

A community for embedded software makers.
https://interrupt.memfault.com
Other
464 stars 134 forks source link

Re: embedded databases #497

Open jaskij opened 3 months ago

jaskij commented 3 months ago

Having read your article, while it was nothing new to me, it's a very nice summary.

Personally, I have found that for simpler devices, it's often enough to have a version field, some form of checksum, and two copies. Simple, safeguards against failures, and expandable.

First, a minor nitpick: I am currently working on a project with STM32H7, and while the page is 32 bytes, you must erase whole sectors, which are 128k. That hurts.

Now to the meat of my comment:

SQLite

Have you considered it? It's probably a bit too massive for your simpler devices, but it has a few nice features to consider. Porting it also does not take long, speaking from experience.

Pros: