cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f401RBT6 not connecting : Vref+ unconnected , low Vcap voltage.

Mikens
Associate II

Hi, I'm pretty new into microcontrollers and I have been doing recently a project using stm32f401rbt6. I have made own pcb with this mcu and have issues with connecting to it using SWD pins by using STlink. I have been investigating this problem for a while and quickly came to the conclusion that I have probably made a mistake in terms of making connections. I have connected all VDD pins to +3.3V supply and grounded all VSS pins including VSSA/Vref- pin leaving Vref+ pin floating ( I don't want to use ADC - so I thought that I didn't have to do anything with it ). I have checked all the pins with the multimeter and all VDD pins have +3.3  V . I have also checked the NRST pin ( which has an internal pull-up) and it is in high state as it should be. The BOOT pin is connected to the slide switch so it can be either +3.3V or 0. What caught my attention is that the VCAP pin is around 0.2 V - from what I have read on the internet it should be much closer to the VDD value.

I have seen a thread where a guy had a similar problem with his own project (link). His mcu also didn't work and had on VCAP only 0.4V. For him connecting Vref+ to the VDD worked.

I have looked into my datasheet again and saw that I have probably overlooked smth. The datasheet says that the Vref pins have internal VDD and VSS connections and for PCB design it should be connected like this and like this (page 109/110).

Might the fact that I left Vref+ be the cause of my problem with communicating with my mcu ( problem with starting it)? I havent seen in the document any information that these 2 pins have a crucial impact on the proper work of the rest of mcu .
Also, I am kinda confused about what I actually should do with this pin. Should I connect it to the +3.3V or connect it to the GND through the capacitor next to the Vref- pin? Would anyone have any suggestions on what should I do?

Just to clarify : pcb is manufactered.

 

scheme.PNG

Vref_info1.PNG

Vref_info2.PNG

  

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

AScha3_1-1697885319031.png

64pin - connect 13 to VDD . then we see...

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

5 REPLIES 5
AScha.3
Chief II

AScha3_1-1697885319031.png

64pin - connect 13 to VDD . then we see...

If you feel a post has answered your question, please click "Accept as Solution".

THANK YOU for checking!. I dont have right now ability to solder this little boy but I have on pcb +3.3V output for OLED so I just wired it than toutched the Vref pin with it and I was finally able to get signall and connect to the mcu. 

Piranha
Chief II

What the hell is R2-R3? Why two of them?

Previously it was cheaper to do this way.

Oh my... The problem is in the fact that you don't understand what parts and why are you putting there. The recommended 10k resistor is just a generic pull-up/down. Basically anything in a range 1k-100k is fine. Also I would connect that resistor permanently to the ground and just pull the voltage up with the switch, when necessary. Or just connect the BOOT0 pin directly to the ground, if the system bootloader is not necessary at all.

And have you read the AN4488?