@@ -37,11 +37,15 @@ config EMDS_THREAD_PRIORITY
37
37
38
38
config EMDS_FLASH_TIME_WRITE_ONE_WORD_US
39
39
int "Time to write one word into flash"
40
+ default 210 if SOC_FLASH_NRF_RRAM
40
41
default 41
41
42
help
42
43
Max time to write one word (4 bytes) in flash (in microseconds). This
43
44
value is dependent on the chip used, and should be checked against the
44
45
chip datasheet.
46
+ For RRAM-based flash drivers, data is written in blocks of 32 bytes over
47
+ buffered writing. This value is used to calculate the time to write
48
+ one 32-byte block.
45
49
46
50
config EMDS_FLASH_TIME_ENTRY_OVERHEAD_US
47
51
int "Time to schedule write of one entry"
@@ -51,6 +55,7 @@ config EMDS_FLASH_TIME_ENTRY_OVERHEAD_US
51
55
52
56
config EMDS_FLASH_TIME_BASE_OVERHEAD_US
53
57
int "Time to schedule the store process"
58
+ default 18200 if SETTINGS && SOC_FLASH_NRF_RRAM
54
59
default 85000 if SETTINGS && !SOC_FLASH_NRF_PARTIAL_ERASE
55
60
default 9000 if SETTINGS && SOC_FLASH_NRF_PARTIAL_ERASE
56
61
default 500
@@ -63,6 +68,8 @@ config EMDS_FLASH_TIME_BASE_OVERHEAD_US
63
68
worst case scenario, before starting storing entries. This value
64
69
is dependent on the chip used, and should be checked against the chip
65
70
datasheet.
71
+ For RRAM-based flash drivers, the time is defined by the erasing block size.
72
+ The default erasing block size is 4096 bytes.
66
73
67
74
module = EMDS
68
75
module-str = emergency data storage
0 commit comments