From cb4f3f12e6cd1e471fd6324891b8ec7b87d514e7 Mon Sep 17 00:00:00 2001 From: ardnew Date: Sun, 6 Sep 2020 13:24:38 -0500 Subject: [PATCH] replace flash method with openocd, disable automatic stack sizing --- targets/feather-stm32f405.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/targets/feather-stm32f405.json b/targets/feather-stm32f405.json index 3eb884cb..d30a5209 100644 --- a/targets/feather-stm32f405.json +++ b/targets/feather-stm32f405.json @@ -1,6 +1,8 @@ { "inherits": ["cortex-m4"], "build-tags": ["feather_stm32f405", "stm32f405", "stm32f4", "stm32"], + "automatic-stack-size": false, + "default-stack-size": 1024, "cflags": [ "-Qunused-arguments" ], @@ -8,6 +10,7 @@ "extra-files": [ "src/device/stm32/stm32f405.s" ], - "flash-method": "command", - "flash-command": "dfu-util -a 0 --dfuse-address 0x08000000 -D {hex}" + "openocd-transport": "swd", + "openocd-interface": "jlink", + "openocd-target": "stm32f4x" }