Ok, now I’m totaly confused!
My debugger “run by acceident”
I’ve forgotten to stop my manualy started openocd in an xterm.
That prevents openstm to start another openocd because the network-port is already occupied.
In this setup debugging works!
If eclipse starts the openocd, debugging don’t work, and I think, I’ve discored why:
The debug-script generated by OpenSTM looks like this:
- This is an test1 board with a single STM32F103C8Tx chip.
- Generated by System Workbench for STM32
source find interface/stlink-v2.cfg
set WORKAREASIZE 0x5000
transport select “hla_swd”
- use hardware reset, connect under reset
reset_config srst_only srst_nogate
The problem in this setup are the 2 lines “transport select” and reset_config.
If I comment out this lines, and start openocd manualy with this script, everything works like expected, but as soon, as I try to debug from eclipse this file ist overwritten with it’s old content.
I than tried to use a custom debug-script (the above content with the 2 lines commented out), but eclipse seems to ignore this script.
Is there a template that i can change, or at which place do I find the srew to adjust this behavior?