Simulate flash for native posix

This commit is contained in:
Hendrik Sauer 2021-07-21 14:15:00 +02:00 committed by Patrick Rathje
parent df102e0002
commit a905091666
4 changed files with 18 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
build/
flash.bin
# Random seed file created by test scripts and sample programs
seedfile

View File

@ -15,7 +15,7 @@ if(DEFINED NATIVE_POSIX)
endif ()
target_include_directories(app PUBLIC ${exposure-notification_SOURCE_DIR}/include)
FILE(GLOB app_sources ../src/*.c* ${exposure-notification_SOURCE_DIR}/src/*.c*)
FILE(GLOB app_sources ../src/*.c* ../src/ens/*.c* ${exposure-notification_SOURCE_DIR}/src/*.c*)
else()
FILE(GLOB app_sources ../src/*.c*)
endif()

View File

@ -17,7 +17,8 @@ CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_ERR=y
CONFIG_BT=n
CONFIG_FLASH=n
# TODO: Add configuration for flash emulation
# CONFIG_FLASH=n
CONFIG_FLASH_SIMULATOR=y
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_HEAP_MEM_POOL_SIZE=8192
# CONFIG_HEAP_MEM_POOL_SIZE=32768

View File

@ -0,0 +1,12 @@
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "ens_storage";
reg = <0x0 0x00004000>;
};
};
};