Issues connecting to an STM32F745VG with an ST-LINK
I am attempting to write software for a "Kakute F7", which is a flight controller with an STM32F745VG on it (the schematic is attached). Some good graphics and a diagram of this can be found here.
I keep getting errors when connecting to the MCU over the ST-LINK. When trying to connect from the command line (by creating a GDB server) I get the error:
STMicroelectronics ST-LINK GDB server. Version 5.7.0
Copyright (c) 2020, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 31
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Enabled
SWD Debug : Enabled
Target connection mode: Default
Target connection failed. Try connecting under reset
Target connection failed
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.And in STM32 ST-LINK Utility I get:
Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
No target connectedOr...
Can not connect to target!
If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
No target connected(I've tried "Connect Under Reset", "Normal" and "HotPlug").
I've checked over and over again, and the connections appear to be soldered on properly and connected to the correct part of the ST-LINK.
I've tried using this ST-LINK on another MCU, and it works just fine, so I have ruled out it being an issue with the ST-LINK.
Additionally, after continuous plugging in and removing, the STM32F745 does occasionally connect, sometime for quite a while (enough that I can successfully use it and write and debug software on it) and sometimes only temporarily. I'm not sure what is different about the times it works, but it certainly isn't anything intentional.
It's frustrating and I've been checking connections for hours, as well as changing the connection mode in STM32 ST-LINK Utility.
I'm not really sure what else needs to be checked, and I'm not really getting anywhere. Does anyone have any ideas?
