2015-09-04 04:33 AM
2015-10-17 06:14 AM
Hi clive
Thanks. I solved my problem. the problem was an unconnected GND pin to GND. I connected it and could program/erase it. After a couple days, I changed my MCU to STM32F103RET6 but I got problem again. I get the previose errors(meantioned earlier in the above posts) again and this: Sounds like it can receive an ID. I measured the current and it's 6mA.2015-10-17 06:34 AM
Ok, but you don't have NRST connected on your debug header, right?
So connecting under reset isn't going to help. Does the debugger connect if you pull BOOT0 high? If so look carefully at your code, and make sure it doesn't break the GPIO pins used for SWD/JTAG, and you aren't putting the chip to sleep or using WFI instructions.2015-10-17 09:13 AM
Right.
No.2015-11-28 07:08 AM
I removed the problems of the PCB and now this is the PCB:
[[this link/image has been flagged as malicious by our security scan software and has been deleted]]
But I have the same problem still. I have checked the connections on the board for short circuit but there is no problem. alone unusual thing that I can see is 100nf capacitors. there is no capacitor near each Vdd and Vss pin. could it be the problem?2015-11-28 08:14 AM
2015-11-28 01:55 PM
Well there's clearly not the one-to-one connectivity, and there is not NRST connectivity.
Assuming you have an old VL Discovery, because that has fewer pins than later models. 1 2 SWCLK 3 GND 4 SWDIO vs your connector 1 GND 2 SWCLK 3 SWDIO 4 3V3 I'd probably not connect the 3V3 here, as the ST-LINK built on the DISCO doesn't need or have buffers using this. For the stand-alone ST-LINK, the target supply is used to power the voltage-converter buffers between the pod and the target.