This document will help users quickly use FlashDB on the demo platform and experience the actual use of FlashDB
Through the following functional block diagram, you can roughly understand the FlashDB functional module division
Before use, you need to install the following development software on your PC in advance
The demo project provided by FlashDB supports two projects by default:
Prepare Serial debugging assistant or Serial terminal tool, and you need to use it when viewing the running log later
The latest code is currently hosted on GitHub. The master branch is the development version. It is recommended to download the released version
In the demos directory of the project, the following demonstration platforms are currently provided. You can choose a platform and experience the running process of FlashDB on a real machine.
For more detailed introduction, click on the instructions in the table below to view.
| Platform | Path | Storage Type | Instructions |
|---|---|---|---|
| stm32f10x | demos/stm32f103ve |
stm32 on-chip flash | click to view |
| stm32f40x | demos/stm32f405rg |
stm32 on-chip flash | click to view |
| stm32f40x + spi flash | demos/stm32f405rg_spi_flash |
spi flash | click to view |
| esp8266 + spi flash | demos/esp8266_spi_flash |
spi flash | click to view |
| linux | demos/linux |
posix file | click to view |
If you don't have a suitable demo platform above, you can also check the example instructions you are interested in first.
| Sample file | Description | Detailed explanation |
|---|---|---|
samples/kvdb_basic_sample.c |
KVDB basic example | click to view |
samples/kvdb_type_string_sample.c |
KV example of string type | click to view |
samples/kvdb_type_blob_sample.c |
Blob type KV example | click to view |
samples/tsdb_sample.c |
TSDB basic example | click to view |