Skip to content

Commit d0ffd95

Browse files
committed
[M252KG] Override mpu-rom-end to 0x1fffffff
Without this override, mpu hal will require 5 mpu regions which exceed 4 mpu regions supported by M252 (see hal/mpu/mbed_mpu_v8m.c). In this scenario, we will hit assert error but we actually meet stack overrun first due to just 0x400 bytes for emitting error message. The issue doesn’t occur on other targets such as M487 because it has 8 mpu regions.
1 parent 3627861 commit d0ffd95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/targets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8818,6 +8818,7 @@
88188818
}
88198819
},
88208820
"overrides": {
8821+
"mpu-rom-end": "0x1fffffff",
88218822
"tickless-from-us-ticker": true
88228823
},
88238824
"inherits": ["Target"],

0 commit comments

Comments
 (0)