nuttx-apps/testing/mtd_config_fs
lilei19 41f60bd669 change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
..
Kconfig testing:add MTD Fail-safe config-data tests 2022-08-31 20:33:20 +08:00
Make.defs testing:add MTD Fail-safe config-data tests 2022-08-31 20:33:20 +08:00
Makefile testing:add MTD Fail-safe config-data tests 2022-08-31 20:33:20 +08:00
mtd_config_fs_test_main.c change strcpy to strlcpy 2023-02-22 23:09:55 +08:00
README.md testing:add MTD Fail-safe config-data tests 2022-08-31 20:33:20 +08:00

Testing / mtd_nvs MTD non-volatile storage Test

This is a test for MTD non-volatile storage. MTD non-volatile storage was originally implemented in Zephyr by Laczen. We made several modification to the original design. The main purpose of those modification was:

  1. support C-string key in nvs API(Original design only support uint16_t as key)
  2. Meanwhile achieve better performance by limiting flash read times(Theoratically better than Zephyr subsys/settings, which is based on original NVS).
  • CONFIG_TESTING_FAILSAFE_MTD_CONFIG Enable the test.
  • CONFIG_TESTING_FAILSAFE_MTD_CONFIG_VERBOSE Verbose output.

EXAMPLE mtdconfig_fs_test -m /dev/config Test MTD NVS on /dev/config mtdconfig_fs_test -h Get help message