Associate II
September 18, 2017
Question
MX_TIM2_Init() hangs debugging
- September 18, 2017
- 1 reply
- 2602 views
Posted on September 18, 2017 at 13:25
Hi,
I use Stm32CubeMX v4. 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 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,
Boris.
#tim2-debugging #stm32cubemx Note: this post was migrated and contained many threaded conversations, some content may be missing.