AnsweredAssumed Answered

TIM1 remap cause debug crash

Question asked by Fede Rico on Sep 27, 2016
Latest reply on Sep 30, 2016 by Fede Rico
Hi there,

I build a Keil project for my STM32F103 MCU with STM32CubeMx.

My goal is use the TIM1 channel 2 for control a Buzzer.
I want to generate a PWM at 4KHz through TIM1 channel 2.
I configured, with STM32CubeMx, the TIM1_Channel2 as "PWM Generator CH2".

The problem regards the debug session. In particular, when I start the debug session and when the MCU executes the macro "__HAL_AFIO_REMAP_TIM1_ENABLE()" the debug session crash.

Anyone have the same issue?