From 97a98f6d4f4665d09e325faf95e1cb77ede5c544 Mon Sep 17 00:00:00 2001 From: Lon Howze Date: Tue, 3 Aug 2021 12:40:20 -0500 Subject: [PATCH] Updated F350 board files Added flash size overrides for OpenOCD as it does not detect the flash size automatically. --- boards/gd32350c_start.json | 2 +- boards/gd32350g_start.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/gd32350c_start.json b/boards/gd32350c_start.json index 59abfc0..a08ccf4 100644 --- a/boards/gd32350c_start.json +++ b/boards/gd32350c_start.json @@ -24,7 +24,7 @@ "cmsis-dap" ], "openocd_target": "stm32f1x", - "openocd_extra_pre_target_args" : ["-c", "set CPUTAPID 0x2ba01477"], + "openocd_extra_pre_target_args" : ["-c", "set CPUTAPID 0x2ba01477", "-c", "set FLASH_SIZE 0x10000"], "svd_path": "GD32F3x0.svd" }, "frameworks": [ diff --git a/boards/gd32350g_start.json b/boards/gd32350g_start.json index 445a103..7b9f33c 100644 --- a/boards/gd32350g_start.json +++ b/boards/gd32350g_start.json @@ -18,6 +18,7 @@ "cmsis-dap" ], "openocd_target": "stm32f1x", + "openocd_extra_pre_target_args" : ["-c", "set CPUTAPID 0x2ba01477", "-c", "set FLASH_SIZE 0x10000"], "svd_path": "GD32F3x0.svd" }, "frameworks": [