- Notifications
You must be signed in to change notification settings - Fork1k
Description
Is your feature request/improvement related to a problem? Please describe.
I'm using the DAPLink debugger with STM32G431 boards and while selecting OpenOCD Daplink SWD uploader the debugger fails. If I edit the launcher.json file to change the ConfigFiles so that instead of stlink.cfg it uses cmsis-dap.cfg
And instead of the protocol file select_ daplink.cnf use select_swd.cfg because these changes allow the debugger to work.
Example:
"configFiles": [ "interface/stlink.cfg", "/home/dlarue/.arduino15/packages/STMicroelectronics/hardware/stm32/2.11.0/debugger/select_dapdirect.cfg", "target/stm32g4x.cfg" ]Should be:
"configFiles": [ "interface/cmsis-dap.cfg", "/home/dlarue/.arduino15/packages/STMicroelectronics/hardware/stm32/2.11.0/debugger/select_swd.cfg", "target/stm32g4x.cfg" ]Describe the solution you'd like
Add a Debugger Probe menu to Tools such that if we select STLink the current defaults occur but if we select OpenOCD DapLink( SWD ) then it populates the configFiles section of launcher.json with the correct configuration files.
Describe alternatives you've considered
I currently manually edit those 2 lines every time I start a debugging session.