problem with st-link/v2 and st-link/v2.1 with stm32f070
Hi,
For some time now I was using cheap bluepill and stm32f030-demo boards to debun my project with st-link probes. It all works perfect. But recently the stmf030 become too small, so I decided to replace it with stm32f070 (same tssop20 package as original stmf030) ... and problems started:
1) I use linux Debian-12 with gcc/gdb/openocd toolchain
2) first stm32f070 I've burned with my code using gdb "load" command. It is now completely unaccesable fo st-link ... although my code works just fine (the code uses USART1 as sort of a "console", and blinks the LED as it should).
3) I've taken it out off the board (unsoldered) and replaced it with another brand new stm32f070, this time I've used usart1 bootloader to burn up the code,
4) this time the code works, st-link can connect, and even gdb using st-link and openocd is able to repeatedly burn new versions of code .... only it cannot restart the chip. The chip always restarts in "bootloader mode", its IP=0x1FFFxxxx istead of 0x08000xxx and debugging is impossible. This happens no matter if I reset the chip using openocd command (reset halt/run) or if I press the RESET button. The only way to make the chip execute user code (my code) is to power-cycle it.
Any ideas why reset doesn't work? Any ideas what could have happen?

