We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 734de07 commit 9d4baa9Copy full SHA for 9d4baa9
src/modm/platform/flash/stm32/module.lb
@@ -37,7 +37,10 @@ def build(env):
37
ftype = "sector"
38
busy_bit = "FLASH_SR_BSY"
39
elif target.family in ["f1"]:
40
- block_shift = 10
+ if target.name in ["05", "07"] or int(flash["size"]) >= 262144:
41
+ block_shift = 11
42
+ else:
43
+ block_shift = 10
44
ftype = "page"
45
46
elif target.family in ["g0"]:
0 commit comments