I was previously using an old version of visualGDB and it was working fine with my custom board.
The board has a STM32F031G6 connected with stlinkV2 using SWD
I upgraded to the latest VisualGDB and paid for a license extension so that I could use the CubeMX import feature.
I imported a project from CubeMX which seems to build fine. However I can’t seem to debug anymore. When I hit debug, it flashes the chip fine (it runs) but then can’t connect.
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08001c58 msp: 0x20001000
Error: jtag status contains invalid mode value - communication failure
Warn : target stm32f0x.cpu is not halted
Polling target stm32f0x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
jtag status contains invalid mode value - communication failure
Info : Previous state query failed, trying to reconnect
it seems to be refusing to communicate with the debugger.
Any ideas what I can try?
Thanks in advance.