Get the latest tech news

Considerations when building embedded databases


A community and blog for embedded software makers

The persisted data is not portable due to endianness and integer size differences, The config will be corrupted if power is lost during the save() function, If a temperature field is added to the struct, it will be read as-1 upon firmware upgrade, which may be unexpected. This greatly simplifies maintainability, reduces confusion for developers unfamiliar with byte-order, saves CPU time, and allows working with constant record data without RAM copies to reverse the byte order before write to flash. These challenges mean that for non-trivial applications such as the smart home hub where there are many small pieces of information to persist, there is a clear need for a well-organized scheme for managing the use of the flash to save and load this data.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Considerations

Considerations