3

I recently created my own breakout board for a STM32F030R8T6 MCU. The attached image shows the PCB that I designed for it. There are no components, only top copper tracks that get connected to header pins that is connected onto a breadboard.

Procedure:

  1. soldered the MCU on the PCB board and tested it for any short connections etc...
  2. Plug the PCB board into the breadboard and connect all the power and ground pins, I added 100nf ceramic capacitors as close as I could to the PCB board.
  3. Connect all the 10k resistors acccording to the schematic diagram
  4. Once that was done, I continued to connecting my ST link/V2 to the board, I only connected pins SWIO, SWCLK, GND & NRST (I left the VDD pin and TVCC pin as I understand it is only there to detect voltage).
  5. Connected my power supply to the power rails and applied 3v.
  6. Connect ST Link/V2 to laptop and open ST utility and try to connect to target.

This is where my problem starts. It says the programmer is unable to connect to target. I have tried everything from changing frequencies and connecting the MCU under reset mode, but nothing worked. So I looked at my power supply and I noticed that the current was varying between 10mA to 0.4A. Strangely the power supply didn't display that there was a short circuit. This is when I took my good old multi meter and did a continuity test and realized that my VDD and VSS pins are shorting.

I am not sure if my MCU is fried or if my ST link/V2 is faulty?

Extra Info:

I have tried resetting the MCU but that didn't do anything. There was a short period where I was able to connect to the MCU but after 3 seconds the utility program will give me a error message that it has lost connection with the target and that I must check my power rails which I did repeatedly.

I would gladly appreciate advice and help as I have gone through 4 MCU and I only have 2 left.

enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here

SamGibson
  • 17,231
  • 5
  • 37
  • 58
user150963
  • 347
  • 1
  • 3
  • 12
  • 2
    Check if the power is wired backwards. Edit: VDD and VCC usually both designate the positive supply rail. Don't you mean VDD and VSS or VCC and GND? – kva Jun 06 '17 at 20:44
  • 4
    FYI, internally shorted and fried is the same thing. – Vladimir Cravero Jun 06 '17 at 20:46
  • 2
    So I meant VDD and VSS, I would like to add that I had connected a external power supply of 3v and then I connected my ST link/v2, sadly I have gone through 4 MCU units so far and I have one more left so I want to be sure that I get it right this time – user150963 Jun 06 '17 at 20:48
  • 3
    You maybe need to take a look : [What is the difference between VCCVCC, VDDVDD, VEEVEE, VSS](https://electronics.stackexchange.com/q/17382/116604) – M.Ferru Jun 06 '17 at 20:50
  • 3
    schematic would help us visualize any issues – Big6 Jun 06 '17 at 21:06
  • 1
    ... and also helpful would be close-up photos of (a) one of the complete breakout boards (which now seems to be shorted between the power rails) and, if possible, (b) an unpopulated breakout board PCB, in case that shows any points of concern. Also (c) how did you confirm that the breakout board PCBs match your schematic? – SamGibson Jun 06 '17 at 21:17
  • Please see the updated question – user150963 Jun 06 '17 at 22:22
  • @user150963 - (a) Thanks, but are you going to supply the requested schematic and *close-up* photos? Or is that one photo (too far away to identify pin 1 on the IC) all that you can supply? (b) "as I apply power the VDD and VSS pins are shorted" - it isn't clear what you did. Did you try to measure that resistance with the power still applied? (c) What is your power supply (not shown in the photo) and did you view its output on an oscilloscope? (d) Did you deliberately not include any supply decoupling or is that hidden on the reverse of the PCB? (e) Is this your first MCU breakout design? – SamGibson Jun 06 '17 at 22:35
  • @SamGibson I apologize for the misunderstanding and I really appreciate your efforts :D – user150963 Jun 06 '17 at 23:51
  • 1
    @user150963 - Thanks for the update, but some parts are *still* not clear. Earlier I asked: "Did you try to measure that resistance with the power still applied?" Your subsequent update says: "I looked at my power supply and I noticed that the current was varying between 10mA to 0.4A. Strangely the power supply didn't display that there was a short circuit. This is when I took my good old multi meter and did a continuity test and realized that my VDD and VSS pins are shorting." That doesn't answer my question. Was power still applied when you did that "continuity test" - yes or no? Thanks. – SamGibson Jun 07 '17 at 04:46

1 Answers1

3

The updates in the question have helped clarify some points, although some concerns have not been answered, and the angle of the photos (not from directly above) makes it impossible to rule out connections to incorrect pins on the breadboard. However I can point out 2 problems so far:

  • Schematic shows decoupling capacitors, but they don't exist on the photo of the actual hardware.

    Even if some 100nF capacitors were fitted to the breadboard (as mentioned in the updated text, but not shown in the photo), that does not meet the requirements shown in the ST "Getting started with STM32F030xx and STM32F070xx series hardware development" document (see section 5.4).

    This could result in various problems, but is unlikely (in my experience) to cause permanent hardware damage as reported. Even if the cause of the hardware damage is corrected, you might still have problems (perhaps constant or perhaps intermittent) until the decoupling is also improved to meet the requirements.

  • No voltage is being supplied to the VDDA and VSSA pins (pins 9 & 8 on the LQFP48 package) - confirmed by the schematic and the photo of the breadboard.

    This is critical and these missing connections could cause internal hardware damage to the MCU. The datasheet and "getting started" documents explain more. Here is one example quotation to make the point clear (datasheet page 42):

    All main power (VDD, VDDA) and ground (VSS, VSSA) pins must always be connected to the external power supply, in the permitted range.

    On all the STM32 MCUs I have worked with, one common factor is that the documentation states you must supply power to VDDA and VSSA even if you are not using the ADCs. This is because an "analog block" inside the MCU (powered by VDDA and VSSA) also contains the power on reset circuitry which is always used, even if the ADCs are not used!

    Therefore as a minimum, you must connect VDDA to VDD and connect VSSA to VSS.

I have run out of time to investigate whether there are more problems and some things (e.g. power supply output spikes/ripple) have not been ruled-out. However that missing power supply to VDDA and VSSA needs to be at the top of your list of fixes, for your next attempt.

Read the documents that I linked to see the official ST recommendations for a minimal STM32F0 system.

Update: I am concerned about the missing connections to the ST Link/V2 which you mention. Some JTAG adapters require connections to the target's power, for their internal buffer ICs. I don't know about the ST Link/V2, and I don't have time to research it now. If I was in your situation, I would check this point.

SamGibson
  • 17,231
  • 5
  • 37
  • 58
  • I did everything you advised with no luck still, I have added a link for a video on Youtube to show you how it is behaving and I cannot connect to the MCU with my ST link, I did a continuity test before I connected the ST link and it was fine but as soon as I connect the programmer it shorts, can you help me? – user150963 Jun 07 '17 at 08:36
  • https://www.youtube.com/watch?v=2nVctdkyXeE&feature=youtu.be – user150963 Jun 07 '17 at 08:36
  • 1
    @user150963 - Unfortunately I cannot see enough detail in the video. However the decoupling still does not seem to meet the requirements explained in that ST document. You claim again that your MCU "shorts" but I see no evidence of that in the video. All I can say is that I *suspect* you have multiple problems, and are mixing up the diagnosis of each one, leaving you confused e.g. power supply to VDDA; decoupling; all necessary connections to the ST Link/V2 (the error message on the screen was not readable for me). Perhaps someone else will see information in the video, which I cannot see. – SamGibson Jun 07 '17 at 12:03
  • Thanks for all the effort you made, it taught me alot, I am just going to restart the whole design from scratch again :). – user150963 Jun 07 '17 at 12:29