Skip to content

Commit 1b1f14d

Browse files
Matthew MacovskyKyle Kearney
authored andcommitted
Explicitly set rbp_internal_size for TARGET_PSOC6
The default computation assumes that a flash sector is several times larger than a flash page. On PSoC 6 targets this is not the case (the two values are the same) so the computed size is too small.
1 parent 7455b89 commit 1b1f14d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
"help": "Path for the working directory where the FileSystemStore stores the data",
3434
"value": "kvstore"
3535
}
36+
},
37+
"target_overrides": {
38+
"MCU_PSOC6": {
39+
"rbp_internal_size": 7168
40+
}
3641
}
3742
}
38-

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"name": "storage_tdb_external",
43
"config": {
54
"rbp_internal_size": {
@@ -22,5 +21,10 @@
2221
"help": "The default will set start address to address 0",
2322
"value": "0"
2423
}
24+
},
25+
"target_overrides": {
26+
"MCU_PSOC6": {
27+
"rbp_internal_size": "7168"
28+
}
2529
}
26-
}
30+
}

0 commit comments

Comments
 (0)