CubeIDE 使用 DAP

在 STM32CubeIDE 中,想使用DAP没有ST-Link方便,自己买的硬石开发板,咨询官方无果,记录一下解决办法: 修改默认的调试配置 复制一份项目中的 Debug.cfg 文件

在 STM32CubeIDE 中,想使用DAP没有ST-Link方便,自己买的硬石开发板,咨询官方无果,记录一下解决办法:

  1. 修改默认的调试配置

  1. 复制一份项目中的 Debug.cfg 文件

  1. 双击修改:

# This is an genericBoard board with a single STM32F407ZETx chip
#
# Generated by STM32CubeIDE
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s)

#source [find interface/stlink-dap.cfg]
source [find interface/cmsis-dap.cfg]

set WORKAREASIZE 0x8000

#transport select "dapdirect_swd"
transport select swd

  1. 更改配置

Comment