generated from hulk/gd32f4xx_template_cmake_vscode
Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# GD32F405RET6 OpenOCD 会话配置(GD-LINK / CMSIS-DAP 调试器)
|
||||
#
|
||||
# 说明:
|
||||
# - GD32F4xx 的 SWD ID 与 flash 扇区布局与 STM32F4 兼容,OpenOCD 使用 stm32f4x target 驱动
|
||||
# (参考 metax-sensors/gd32-cmake-example 的做法,已在其 GD32F450 板上验证)。
|
||||
# - interface/cmsis-dap.cfg 与 target/stm32f4x.cfg 通过 [find] 从 GD32_OPENOCD_SCRIPTS
|
||||
# 根目录解析,因此任务/调试命令需附带 `-s %GD32_OPENOCD_SCRIPTS%`。
|
||||
# - 如使用其它调试器,把第一行换成对应的 interface cfg,例如:
|
||||
# source [find interface/jlink.cfg]
|
||||
|
||||
source [find interface/cmsis-dap.cfg]
|
||||
source [find target/stm32f4x.cfg]
|
||||
|
||||
# 显式声明 512KB flash bank(GD32F405xE),避免自动探测偏差;1024K(xG) 时改为 0x100000
|
||||
# flash bank stm32f2x.flash 0x08000000 0x80000 0 0 0
|
||||
Reference in New Issue
Block a user