Skip to content

Commit 1913cb7

Browse files
aykevldeadprogram
authored andcommitted
cortexm: bump default stack size to 2048 bytes
Previously it was 1024 bytes, which occasionally ran into a stack overflow. I hope that 2048 bytes will be enough for most purposes. I've also removed some 2048-byte stack size settings in JSON files, which are unnecessary now that the parent (cortex-m.json) sets them.
1 parent cd628bc commit 1913cb7

File tree

7 files changed

+6
-12
lines changed

7 files changed

+6
-12
lines changed

targets/cortex-m.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"rtlib": "compiler-rt",
99
"libc": "picolibc",
1010
"automatic-stack-size": true,
11-
"default-stack-size": 1024,
11+
"default-stack-size": 2048,
1212
"cflags": [
1313
"-Oz",
1414
"-mthumb",

targets/feather-stm32f405.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"inherits": ["cortex-m4"],
33
"build-tags": ["feather_stm32f405", "stm32f405", "stm32f4", "stm32"],
44
"automatic-stack-size": false,
5-
"default-stack-size": 1024,
65
"linkerscript": "targets/stm32f405.ld",
76
"extra-files": [
87
"src/device/stm32/stm32f405.s"

targets/grandcentral-m4.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
"flash-method": "msd",
66
"msd-volume-name": "GCM4BOOT",
77
"msd-firmware-name": "firmware.uf2",
8-
"openocd-interface": "jlink",
9-
"default-stack-size": 2048
8+
"openocd-interface": "jlink"
109
}

targets/p1am-100.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"inherits": ["atsamd21g18a"],
33
"build-tags": ["sam", "atsamd21g18a", "p1am_100"],
44
"flash-command": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {bin}",
5-
"flash-1200-bps-reset": "true",
6-
"default-stack-size": 2048
5+
"flash-1200-bps-reset": "true"
76
}

targets/pygamer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"flash-1200-bps-reset": "true",
55
"flash-method": "msd",
66
"msd-volume-name": "PYGAMERBOOT",
7-
"msd-firmware-name": "arcade.uf2",
8-
"default-stack-size": 2048
7+
"msd-firmware-name": "arcade.uf2"
98
}

targets/pyportal.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"flash-1200-bps-reset": "true",
55
"flash-method": "msd",
66
"msd-volume-name": "PORTALBOOT",
7-
"msd-firmware-name": "firmware.uf2",
8-
"default-stack-size": 2048
7+
"msd-firmware-name": "firmware.uf2"
98
}

targets/wioterminal.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"flash-1200-bps-reset": "true",
55
"flash-method": "msd",
66
"msd-volume-name": "Arduino",
7-
"msd-firmware-name": "firmware.uf2",
8-
"default-stack-size": 2048
7+
"msd-firmware-name": "firmware.uf2"
98
}

0 commit comments

Comments
 (0)