Skip to content

Commit ddab827

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 7f45359 commit ddab827

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
@@ -8325,6 +8325,7 @@
83258325
}
83268326
},
83278327
"overrides": {
8328+
"mpu-rom-end": "0x1fffffff",
83288329
"tickless-from-us-ticker": true
83298330
},
83308331
"inherits": ["Target"],

0 commit comments

Comments
 (0)