Workbench keeps changing the STLink type for a custom board project
I’m using the latest OpenSTM32 build (Version: 1.13.2.201703061529) under Ubuntu 14.04 64-bit. I generated the project under STM32CubeMX 4.20.1.
Target MCU is an STM32F100 with a few LEDs and a serial port. JTAG probe is an STLink/V2. My code is a dead-simple blink-the-lights application that builds successfully.
When I attempt to debug, I get a failure in final launch sequence (I’ve seen this error in several forum topics indicating incorrect STLink type):
Failed to execute MI command: -target-select remote localhost:3333
Examination of the project XML file reveals that when I build the project or start to debug, the debugger setting ST-LinkV2 in my XML file is being automagically changed to ST-LinkV2-1, overwriting my manual changes.
I cannot find where the incorrect default debugger type selection is coming from, and I don’t see where the debugger type is configured. Can anyone suggest where I may be going wrong?
Project .cfg file contents are below:
- This is an ITB_Unchained board with a single STM32F100CBTx chip.
- Generated by System Workbench for STM32
source find interface/stlink-v2.cfg
set WORKAREASIZE 0x2000
transport select “hla_swd”
set CHIPNAME STM32F100CBTx
source find target/stm32f1x_stlink.cfg
- use hardware reset, connect under reset
reset_config srst_only srst_nogate
Project XML file contents are below:
ITB_Unchained
stm32f100cbtx
SWD
ST-LinkV2