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!Hon2012-12-25 11:13 AM
The chip doesn't use the HSE unless your own software enables it.
What about the VCAP pins? Analogue & Digital supplies? Complete schematic?2012-12-25 12:46 PM
Hello, thanks for replying!
I went and looked through the datasheet again just now and I noticed the VCAP pins need to be connected through 2.2uF, low ESR caps to GND. I've ordered some tantalum caps for these.I've broken the VSSA and VDDA, so I can tie them to VSS and VDD if necessary (which is, according to the datasheet). I have no clue as to why this is necessary though.Hon2012-12-25 02:02 PM
The analogue supply is connected to the power-on-reset circuit as I recall.
2012-12-25 03:12 PM
Thank you! I'll post back when I've fixed everything.
Just curious, the datasheet says the VCAP pins are meant for filtering the main regulator. What main regulator is this? How vital is this filtering to the functionality of the MCU?Hon2012-12-26 07:49 AM
The core runs at 1.2V
2012-12-26 08:45 AM
As Clive says, connect VSSA and VDDA.
2012-12-27 03:12 PM
Thanks for all the replies.
Unfortunately, it still doesn't work. I previously removed the external crystal which shouldn't affect anything, and here's what I did:Connected VSSA to VSS, and connected VDDA to VDD. Tried connecting to ST-Link V2, ''No Target Connected''. Tried 0x7F at 9600bps 8E1, USART3 responds inconsistent bytes (and sometimes no response).Attached 2.2uF, 63V electrolytic caps to between VCAP1 and VSS, same for VCAP2. Tried ST-Link V2, same error. 0x7F to USART3, same type of response.I probed the voltage at VCAP pins, found them to be ~0.25V at VCAP1 and 0V at VCAP2. This doesn't mean much to me since I don't really know how they are internally connected, so it might be irrelevant information.For convenience, I'm powering the chip now using the 3.3V output from the FTDI breakout from Sparkfun.Any suggestions will be appreciated!Bo Xuan2012-12-28 12:57 PM
2012-12-28 01:02 PM
After further searching, these are the connections I've made:
VDDA to VDDVSSA to VSSVCAP1 to 2.2uF 63V electrolytic cap to VSSVCAP2 to 2.2uF 63V electrolytic cap to VSSVBAT to VDDNRST to VDD (also tried with VSS, though datasheet suggests LOW for reset)BOOT0 to VDDI use the Sparkfun 3.3V FTDI breakout to power the board, and connect RXI to PB10 and TXO to PB11. Using 9600 8E1, I send 0x7F.I frequently get a 0xFF and 0xFE reply, and also 0xFF by itself frequently. Does anybody know what these mean?Any assistance will be appreciated!Bo Xuan