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. |