I use Stm32CubeMX v4.22. It creates the code for TIM2, TIM3 and TIM8 (STM32F103VCT, custom board). All timers have "Clock Source == Internal Clock" and 4 channels configured to "Input Capture direct mode". When I debug the code with sw4stm32 v2.2.1 (ubuntu 16.04 x64) there is not return from "Step over" debugging in MX_TIM2_Init(). Debugging hangs. The code is attached.
After that in addition the only way to reload (or erase) the code is to connect the reset pin of St-link v2 to MCU NRST and use "Reset Mode == Connect under reset".
When I comment MX_TIM2_Init() debugging is OK with "Reset Mode == Software system reset".
Is there a way to debug with TIM2?
Thanks for assistance,