Programming Bare STM32F0 Chip with Discovery SWD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-18 3: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 #stm32f0discovery- Labels:
-
DEBUG
-
STM32F0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-18 5:49 AM
Perhaps you can provide some salient details about your board designs, and connectivity?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-18 11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-19 1:46 AM
I would:
Connect NRST to my debug interfaceHave a pull-up on NRSTHave a pull-down on BOOT0Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-23 4: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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-23 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.