2021-10-08 04:02 PM
I am using STMCubeIDE v1.7 on MacOS 10.15.7 and connecting to my target via an STLINK V3. I updated CubeIDE to v1.7 and it suggested an update to the STLINK. Since doing that update I am not able to connect to my target (STM32F405). Errors given are:
STMicroelectronics ST-LINK GDB server. Version 5.9.1
Copyright (c) 2021, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Target unknown error 19
Error in initializing ST-LINK device.
Reason: Unknown. Please check power and cabling to target.
In the problem occurred dialog
Error in final launch sequence:
Failed to start GDB server
Failed to start GDB server
Error in initializing ST-LINK device.
Reason: (255) Unknown. Please check power and cabling to target.
Previous to this udate I was able to connected with no problem though that was a couple of months back. There is no problem with the connection from STLINK to my board.
Any help with this would be appreciated
Thankyou
Reg
Solved! Go to Solution.
2021-10-10 04:11 PM
Thankyou for the help with this, one thing I was confused between CubeProgrammer and CubeIDE (need more sleep). When connecting via CubeProgrammer it would see the STLINK but when attempting connecting to the board the CubeProgrammer would just die.
To cut a long story short I eventually found that the ground connection to the STLINK had become disconnected but was actually showing as connected when measuring. The disconnection had made the ground take a longer route which when re-connected correctly the system started working again.
My apologies for taking your time with such a simple fix.
Reg
2021-10-08 05:29 PM
Is it a custom target board?
What happens if you connect in STM32CubeProgrammer? Does target voltage, chip id, etc, show up correctly?
2021-10-09 02:31 PM
Thankyou for the reply TDK. Yes this is a custom board so am not able to connect directly to STM32CubeProgrammer
2021-10-09 03:47 PM
The ST-LINK / STM32 Cube Programmer really shouldn't care that you're using a custom board.
The SWD / JTAG pins just need to be attached appropriately.
If your F405 isn't functioning, perhaps you need to look at the VDDA supply, and what's happening with the VCAP pins. You should be able to see around 1.2V. Check the capacitors have the correct values.
Check the orientation of your part.
2021-10-09 04:33 PM
2021-10-10 04:11 PM
Thankyou for the help with this, one thing I was confused between CubeProgrammer and CubeIDE (need more sleep). When connecting via CubeProgrammer it would see the STLINK but when attempting connecting to the board the CubeProgrammer would just die.
To cut a long story short I eventually found that the ground connection to the STLINK had become disconnected but was actually showing as connected when measuring. The disconnection had made the ground take a longer route which when re-connected correctly the system started working again.
My apologies for taking your time with such a simple fix.
Reg
2024-04-17 05:12 AM
2024-07-05 10:37 PM - edited 2024-07-05 10:38 PM
were you able to solve the problem? if yes, how? I am using the same board and suddenly started facing this problem again. when i first faced it, i just needed to download some st-link servers and it got resolved but now nothing is working.