AnsweredAssumed Answered

STM32F103R8T6 SWD problem

Question asked by trung_thanh.nguy.001 on Nov 1, 2015
Latest reply on Nov 10, 2015 by Amel N
Hello everyone,

I am making PCB with STM32F103R8T6 but I have problem with SWD. I connect PCB with ST Link Mini via SWD 
SWCLK <--> PA14
SWDIO <--> PA13
RST <--> NRST
SWIM <--> PB3
GND <--> VCC
3V3 <--> VDD
In Keil, it can recognize SW Device but I cannot download flash it say Flash Download failed - "Cortex - M3"
However, if I tried to erase full chip I can download flash but after "Programming Done"  it shows 
Contents mismatch at: 08000000H  (Flash=FFH  Required=60H) !
......
Contents mismatch at: 08000063H  (Flash=FFH  Required=08H) !
and then"Flash Download failed - "Cortex - M3""

In this case, if I unplug power and plug power again PCB work.

Can you give me some advise to solve my problem?

Thank you very much.

Outcomes