Browse Source

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.
pull/1964/head
Ayke van Laethem 3 years ago
committed by Ron Evans
parent
commit
1913cb76a5
  1. 2
      targets/cortex-m.json
  2. 1
      targets/feather-stm32f405.json
  3. 3
      targets/grandcentral-m4.json
  4. 3
      targets/p1am-100.json
  5. 3
      targets/pygamer.json
  6. 3
      targets/pyportal.json
  7. 3
      targets/wioterminal.json

2
targets/cortex-m.json

@ -8,7 +8,7 @@
"rtlib": "compiler-rt", "rtlib": "compiler-rt",
"libc": "picolibc", "libc": "picolibc",
"automatic-stack-size": true, "automatic-stack-size": true,
"default-stack-size": 1024, "default-stack-size": 2048,
"cflags": [ "cflags": [
"-Oz", "-Oz",
"-mthumb", "-mthumb",

1
targets/feather-stm32f405.json

@ -2,7 +2,6 @@
"inherits": ["cortex-m4"], "inherits": ["cortex-m4"],
"build-tags": ["feather_stm32f405", "stm32f405", "stm32f4", "stm32"], "build-tags": ["feather_stm32f405", "stm32f405", "stm32f4", "stm32"],
"automatic-stack-size": false, "automatic-stack-size": false,
"default-stack-size": 1024,
"linkerscript": "targets/stm32f405.ld", "linkerscript": "targets/stm32f405.ld",
"extra-files": [ "extra-files": [
"src/device/stm32/stm32f405.s" "src/device/stm32/stm32f405.s"

3
targets/grandcentral-m4.json

@ -5,6 +5,5 @@
"flash-method": "msd", "flash-method": "msd",
"msd-volume-name": "GCM4BOOT", "msd-volume-name": "GCM4BOOT",
"msd-firmware-name": "firmware.uf2", "msd-firmware-name": "firmware.uf2",
"openocd-interface": "jlink", "openocd-interface": "jlink"
"default-stack-size": 2048
} }

3
targets/p1am-100.json

@ -2,6 +2,5 @@
"inherits": ["atsamd21g18a"], "inherits": ["atsamd21g18a"],
"build-tags": ["sam", "atsamd21g18a", "p1am_100"], "build-tags": ["sam", "atsamd21g18a", "p1am_100"],
"flash-command": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {bin}", "flash-command": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {bin}",
"flash-1200-bps-reset": "true", "flash-1200-bps-reset": "true"
"default-stack-size": 2048
} }

3
targets/pygamer.json

@ -4,6 +4,5 @@
"flash-1200-bps-reset": "true", "flash-1200-bps-reset": "true",
"flash-method": "msd", "flash-method": "msd",
"msd-volume-name": "PYGAMERBOOT", "msd-volume-name": "PYGAMERBOOT",
"msd-firmware-name": "arcade.uf2", "msd-firmware-name": "arcade.uf2"
"default-stack-size": 2048
} }

3
targets/pyportal.json

@ -4,6 +4,5 @@
"flash-1200-bps-reset": "true", "flash-1200-bps-reset": "true",
"flash-method": "msd", "flash-method": "msd",
"msd-volume-name": "PORTALBOOT", "msd-volume-name": "PORTALBOOT",
"msd-firmware-name": "firmware.uf2", "msd-firmware-name": "firmware.uf2"
"default-stack-size": 2048
} }

3
targets/wioterminal.json

@ -4,6 +4,5 @@
"flash-1200-bps-reset": "true", "flash-1200-bps-reset": "true",
"flash-method": "msd", "flash-method": "msd",
"msd-volume-name": "Arduino", "msd-volume-name": "Arduino",
"msd-firmware-name": "firmware.uf2", "msd-firmware-name": "firmware.uf2"
"default-stack-size": 2048
} }

Loading…
Cancel
Save