Solved
TIM2 remap causes an stlink error
Hello, please help me.
I use stm32f103rc mcu, stlink v2 and keil uvision5.
So executing
AFIO->MAPR |= AFIO_MAPR_TIM2_REMAP_FULLREMAP;causes stlik connection error.
Algorithm:
- Flash the MCU with keil uvision.
- Step to remmaping line in code. In this stage everything works fine.
- "Cannot access target" "shutting down debug session"
- After this debugger no longer sees MCU. "No target connected" "error: target dll has been cancelled. Debugger aborted!"
- Connect to MCU under reset, erase flash.
