2012-12-25 05:43 AM
Hello all,
I created my own breakout board for the STM32F405RGT6, but I'm unable to connect to it via the ST Link V2. The error is ''No Target Connected''.I've tested this with an external 8Mhz crystal (with load capacitors) and without. All other pins are simple broken out. I've successfully connected to the STM32F4 Discovery using the exact same method.After some searching, I found that pulling the BOOT0 pin HIGH allows me to see if the device is working. Sending 0x7F at 9600bps 8E1 to USART3 returns inconsistent bytes (changes all the time). On all pins of USART1, there is no response. The same thing on the Discovery board returns the expected 0x79 (on the first try, something else on all others).This is the first time I've developed a breakout for STM32 devices, and it is possible I've missed a connection required for it to work. So far, it is simply VDD, VSS, PH0, PH1, BOOT0 connected.Any help will be appreciated! Thank you!Hon2013-12-30 09:07 PM
What decoupling capacitors do you have on the PCB?
2013-12-31 07:00 AM
Board makes sense, but the resolution/clarity/macro make it hard to see the marking and orientation of the STM32F4. Can you get a clearer shot, or perhaps mark where Pin 1 is?
2013-12-31 07:32 AM
Sure thing. It's attached. Thanks for all your time thus far!
When I was soldering the chip, I found the orientation a little confusing as well. Just in case I got it wrong, pin 1 is at the top left corner (left edge) with reference to the text on the chip. ________________ Attachments : Connections.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtTi&d=%2Fa%2F0X0000000aQW%2FKPLH0y2e6jnPeImEEIvtMal.94O_BCR2.1BUxEQdbTE&asPdf=false2013-12-31 09:41 AM
2013-12-31 09:53 AM
I don't have my STM chips here with me but I bet 100% you have the chip oriented incorrectly.
The dot indicates pin-1. Don't go by the printed logo. From what I can see on the STM32F4 Discovery manual, the logo is turned 90 degrees, exactly what happened with my Freescale chip.2013-12-31 09:55 AM
Thanks for replying. Normally the correct corner is identified by a dot, but in the case of this chip, there are 2 on top and 2 on the bottom (all four corners). In short, I don't really know. Is there a way I can find out for sure?
I do know the need for the caps to be close, unfortunately there's not much I can do for now. I've modified by board design to have all everything close by.If we aren't able to find any mistakes at all, I'll attempt to solder the caps directly onto the legs of the IC. If that fails, I'll have the new boards made.2013-12-31 10:27 AM
Ken, you are right. I've managed to connect via ST-Link after changing the orientation. I have some errors with losing connection, occasionally internal command error. I also get errors about flash mass erase etc.
Thanks to all who helped, and sincere apologies about the thoroughly uninteresting mistake.2013-12-31 11:20 AM
Nice to know what is the problem. Next time you do a PCB layout plan on making the bottom side a full ground plane, perhaps with the occasional trace connected to the top side. I use copper pour to get the ground plane to wrap around all traces and pads. (I use Eagle PCB layout).
Use SMD 0.1uF capacitors on all supply lines and 2.2uF on VCAP_1 and VCAP_2. Give your decoupling capacitors and supply lines high priority, placing the caps as close to the chip as possible. Connect the GND side of the caps to the ground plane using a via right through the SMD ground pad.2013-12-31 11:41 AM
I usually use 2 sided PCBs for stuff like this. It's quite difficult to break everything out without going to the bottom plane. Even though it's technically a ground pour at the bottom, it's quite badly cut up with all the traces.
Also, I'm getting quite a few errors with ST Link, like the ''Disable Read Out Protection...'' related stuff. I might just try moving the caps very close to the pins.2013-12-31 12:24 PM
You look to have a bunch of SMT land patterns on the board, presumably for caps and a crystal.
Here's a 64pin F0 and F1 part, Pin 1 is marked with a red star