Skip to content

Commit 84f3444

Browse files
committed
Add config target.internal-flash-uniform-sectors and set it to false for STM32L2/4/7
Some internal flashes have non-uniform sectors, and for those ones we want to skip the initialization of default LittleFileSystem on FlashIAPBlockDevice (unless the user specifies an address range that's uniform). This commit adds a config to indicate if sectors are uniform.
1 parent 468372e commit 84f3444

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

targets/targets.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
"default-adc-vref": {
8585
"help": "Default reference voltage for ADC (float)",
8686
"value": "NAN"
87+
},
88+
"internal-flash-uniform-sectors": {
89+
"help": "Target's internal flash has uniform sector sizes",
90+
"value": true
8791
}
8892
}
8993
},
@@ -1344,6 +1348,9 @@
13441348
"macro_name": "CLOCK_SOURCE"
13451349
}
13461350
},
1351+
"overrides": {
1352+
"internal-flash-uniform-sectors": false
1353+
},
13471354
"device_has_add": [
13481355
"ANALOGOUT",
13491356
"CAN",
@@ -1495,6 +1502,9 @@
14951502
"macro_name": "CLOCK_SOURCE"
14961503
}
14971504
},
1505+
"overrides": {
1506+
"internal-flash-uniform-sectors": false
1507+
},
14981508
"device_has_add": [
14991509
"SERIAL_ASYNCH",
15001510
"FLASH",
@@ -2109,7 +2119,8 @@
21092119
}
21102120
},
21112121
"overrides": {
2112-
"lpticker_delay_ticks": 0
2122+
"lpticker_delay_ticks": 0,
2123+
"internal-flash-uniform-sectors": false
21132124
},
21142125
"macros_add": [
21152126
"MBED_TICKLESS",

0 commit comments

Comments
 (0)