2015-06-18 03:57 AM
I have programmed many STM32F030C8 chips with Discovery board but the success rate while trying to program each Chip is very low. Some times after many tries the chip gets programmed and some times it does not work at all. Then I have to program the chip serially. And now with 20 pin STM32F0 it is not working at all. I don't seem to understand why this is happening.
#swd #stm32f0discovery2015-06-18 05:49 AM
Perhaps you can provide some salient details about your board designs, and connectivity?
2015-06-18 10:24 PM
For the STM32F030F4P6 Chip I have done following connections
VDD & VDDA to 3.3VVSS to GNDBOOT openNRST Connected to ground through capacitor.and Connection with DiscoverySWDIO, SDCLK and GND connected from chip.2015-06-18 11:36 PM
2015-06-19 01:46 AM
I would:
Connect NRST to my debug interfaceHave a pull-up on NRSTHave a pull-down on BOOT02015-06-23 04:24 AM
Attaching Pull-up or pull-down causes no change.
I tried reducing the wire length and used shielded wire, this improved the result.But the failure rate is still very high.I have written script to continuously try programming.2015-06-23 04:58 AM
Try using the ST-LINK/V2 if you have one. Also it's worth trying a different host computer in case the one you are using is very noisy.
2015-06-27 12:28 AM
Using only the discovery board I was able to program multiple chips.
I think below 3 things are required to make everything work3 wires SWD, CLK and GND interleaved/twisted from board to chip. (Connection to RST and BOOT is not relevant)Good mechanical connection of wireand stable power supply to chip.Thank you all.