Skip to content

Commit ff71b0b

Browse files
author
Kyle Kearney
committed
Refactor internal flash TDB bounds determination
Default the size to the larger of two sectors or 10 pages, so that the computation works better on devices with a low sector to page size ratio. Reduce code duplication.
1 parent c385e14 commit ff71b0b

File tree

4 files changed

+140
-207
lines changed

4 files changed

+140
-207
lines changed

features/storage/kvstore/conf/filesystem/mbed_lib.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "storage_filesystem",
33
"config": {
44
"rbp_internal_size": {
5-
"help": "Default is the size of the 2 last sectors of internal flash",
5+
"help": "Default is the larger of the last 2 sectors or last 10 pages of flash.",
66
"value": "0"
77
},
88
"internal_base_address": {
9-
"help": "If default, base address is the first sector after the application code",
9+
"help": "If default, base address is set to internal_size bytes before the end of flash.",
1010
"value": "0"
1111
},
1212
"filesystem": {
@@ -36,7 +36,7 @@
3636
},
3737
"target_overrides": {
3838
"MCU_PSOC6": {
39-
"rbp_internal_size": 7168
39+
"rbp_internal_size": "7168"
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)