2024-07-15 10:16 PM
Hii everyone,
I want to debug STM32F103C8T6 controller by using the debugger present in the STM32F446RE nucleo board. After setting the parameters , when i go for debugging the following error is coming. Please guide me how i could debug my respective code using the STM32F103C8T6 controller.
Output
STMicroelectronics ST-LINK GDB server. Version 7.7.0
Copyright (c) 2024, 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
Device connect error
Error in initializing ST-LINK device.
Reason: Failed to connect to device. Please check power and cabling to target.
Thank You...
2024-07-16 12:53 AM
Hello @Shaku ,
Make sure to upgrade ST-Link firmware.
Check the debug pins connections and GPIO pin used for toggling.
2024-07-16 01:10 AM
Thank you !!!!
After checking the debug pins and GPIO pin i am getting the same error. I'm also upgrading the ST-Link firmaware but the error is coming continuously.
2024-07-16 02:15 AM - edited 2024-07-16 02:44 AM
@Shaku wrote:I want to debug STM32F103C8T6 controller by using the debugger present in the STM32F446RE nucleo board
Have you set all the links on the Nucleo board correctly - to disconnect the STM32F446RE Target from the ST-Link?
Post a schematic of your connections.
Post some good, clear photos of your setup.
@Shaku wrote:
Error in initializing ST-LINK device.
That means the computer isn't even connecting to the ST-Link.
Does it show up in the Device Manager (or equivalent)?
If not, check your cable: are you sure it's a full data cable - not jus a charging cable?
Try other cables.
Try other USB ports.
Knowledgebase article:
https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/tac-p/698105#M956
2024-07-16 10:18 PM
Thank you!!!
I am using it in Linux(ubuntu) OS.