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.