cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F417VGT VCAP Voltage Problem

SalihKun
Associate II

Hi everyone!

I am having a hard time making my design work.

I prepared a long list of what I did and what I observed to paste into ChatGPT.
I am pasting the exact text below:

I designed an digital circuit using STM32F417VGT microcontroller.

I applied 3.3V to all VDD, VDDA, VBAT and VREF+ pins.
I connected all VSS and VSSA pins to the circuit ground (GND).
I connected all required bypass capacitors to the power pins as instructed in the datasheet.
I added 2.2uF/6.3V ceramic capacitors to the both VCAP pins.
I added 32.768kH and 25MHz crystal oscillators to the correct clock pins.
I connected the BOOT1 pin to GND.
I tried connecting the BOOT0 pin to VDD and GND at separate times.

I have several similar designs, which I previously designed before this one.
In these similar designs, I exactly did the same connections I listed above.
These similar designs work perfectly fine.

But my current design does not work.

I am using StmCubeMxIde (latest version).

I checked the pin connections several times.
I can confirm that there is no mistake in the hardware design.
The supply voltage (3.3V) is very close the actual 3.3V value and is inside the tolerance.

But there is an unexpected behavior I detected:
VCAP pin voltages are well below the value they should be.
VCAP capacitors must have around 1.2V on them.
But they have a voltage value around 200mV-400mV on them.

I checked if the VCAP capacitors are broken.
I read several kilo ohms of resistance between the capacitor terminals.

I am using the standard 20 pin JTAG/SWD connector to program the MCU.
All of the signals below are correctly connected to the connector:
SYS_JTRST
SYS_JTDO-SWO
SYS_JTDI
SYS_JTCK-SWCLK
SYS_JTMS-SWDIO
NRST
The programming interface is the same as my previously running designs.

In the IDE;
I created a new "STM32 Project".
I selected my chip model (STM32F417VGT).
I chose target language C++.
I didn't change any other settings while creating a new project.

In the "Pins & Configuration" tab:
I assigned the pins for crystal connections. (System Core > RCC > HSE/LSE)
I assigned the pins for JTAG/SWD connections. (System Core > SYS > Debug > JTAG (5 pins))

In the "Pins & Configuration" tab:
Input frequencies (32.768kHz and 25MHz) are correctly listed.
There are no errors reported.

The IDE generated a default code for me.
I didn't do any modifications in this default code.

When I click either "Debug" or "Run" button in the toolbar, I get the following error message in the console panel:
"Target no device found"
"Error in initializing ST-LINK device."
"Reason: No device found on target."

In the Debug/Run configuration page:
I can't scan the programmer STLink S/N.
"Debuge probe" --> "STL-LINK (ST LING GDB server)"
"Interface" --> "SWD"
"Frequency" --> "Auto"
"Reset behavior > Type" --> "Connect under reset"

After a short while, a message box with the title "Problem Occurred" appears with these messages:
"'Launching <ProjectName> Debug' has encountered a problem."
"Error in final launch sequence:"
"Failed to execute MI command:
target remote localhost:61234"
"Error message from debugger back end:
localhost:61234: Connection timed out."

My programmer is "ST-LINK/V2".
Its firmware is up to date.
Its led color is always red.

When I use "STM32CubeProgrammer" software:
It can't connect to the target.
It measures target voltage as "3.25V".
It reads target version as "V2J45S7".

I have assembled two PCBs of this same design.
Both of them are showing the exact same symptoms.

 

Can you please guide me what to do in order to solve this issue?

Thanks.

 

 

12 REPLIES 12

And why don't you have a look at the datasheet?

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
STOne-32
ST Employee

Dear @SalihKun ,

 

For more details on Pin1 marking, Here Reference device marking schematics for STM32 microcontrollers and microprocessors - Technical note 

 

STOne32_0-1731533403219.png

So you need to rotate your device versus PCB with 90° angle on right side like this 

 

STOne32_1-1731533488132.png

as I see your crystal pins are on left side of the screen.

Ciao

STOne-32.

SalihKun
Associate II

Many thanks to everyone who replied.
I rotated the chip and it is working at the moment.
I really appreciate your help greatly!!