我想问一下clion编译的makefile项目能通过openocd Download&Run的方式通过dplink下载器进行下载吗
Answered
我想问一下clion编译的makefile项目能通过openocd Download&Run的方式通过dplink下载器进行下载吗,如果可以的话能教我一下clion应该怎样设置吗?
Please sign in to leave a comment.
Hello!
By dplink, do you mean DAPLink?
If so, you can try the following (steps are based on CLion 2026.2):
Create an OpenOCD config file in your project, for example
daplink.cfg, with the content below. Replace<chip>with the file name from the OpenOCDscripts/targetdirectory that matches your MCU, for examplestm32f1xfor the STM32F1 series..elf) to download.daplink.cfgfile from step 2.For more information about the OpenOCD Download & Run run/debug configuration, see the OpenOCD support article.