2019-03-09 10:17 AM
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:
Solved! Go to Solution.
2019-03-09 11:36 AM
One might guess that the TIM2 pins conflict with the JTAG or SWD pins PA13/PA14, etc.
2019-03-09 11:36 AM
One might guess that the TIM2 pins conflict with the JTAG or SWD pins PA13/PA14, etc.
2019-03-09 11:42 AM
Hi Clive, glad to meet you). No JTAG used, no SWD conflicted. 46SWDIO 49SWCLK 14,15,16,17 TIM2 remap to 50,55,29,30.
2019-03-09 11:37 PM
Clive was wright. SWD turn off while execute
AFIO->MAPR |= AFIO_MAPR_TIM2_REMAP_FULLREMAP;
I use
__HAL_AFIO_REMAP_TIM2_ENABLE();
Instead. Is it because SWJ_CFG bits in AFIO_MAPR is only writable? How it worked in my old project?
Thank you.
2019-03-18 08:58 AM
I have a stm32f411re board and I have the same problem. But I don't know how to connect under reset mode and erase cpu, can u help me?
St-link utility or cube programmer erorr says "no stm32 found" or "cannot connect the target"
Also in the mass storage there is a fail document that says "the interface firmware failed to reset/halt the target mcu"