cancel
Showing results for 
Search instead for 
Did you mean: 

Error in initializing ST-Link device. Reason: (-1) Unknown. Please check power and cabling to target.

AAdin.1
Associate II

When I tried to debug my STM32F303RE nucleo board with Truestudio , I get this messages from console:

When I get this message , I was working on EXTI interrupts at register level

STMicroelectronics ST-LINK GDB server. Version 5.1.0
Copyright (c) 2018, STMicroelectronics. All rights reserved.
 
Starting server with the following options:
        Persistent Mode            : Disabled
        LogFile Name               : D:\projeler\sf_projeler\Attolic_workspace\EXTI2_example\Debug\st-link_gdbserver_log.txt
        Logging Level              : 31
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Enabled
        SWD Debug                  : Enabled
 
Hardware watchpoint supported by the target 
SWD frequency = 4000 kHz
ST-LINK Firmware version : V2J37S27
Device ID: 0x446
PC: 0xfffffffe
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.25 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Failed to bind to port 61234, error code -1: No error
Failure starting GDB server: TCP port 61234 not available.

I was able to program it even last night , but this morning suddenly occur this error.

Now , I can program it with stm32cube programmer .

What I did to solve it:

  • upgraded firmware of ST-link .
  • connected with STM32CUBE programmer and full erase chip succesfully.
  • reinstall Truestudio

thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
AAdin.1
Associate II

SOLVED!!

It is solved again suddenly :D :D :D

I writed this post and ı walked at park about 1-2 hours.

When I checked again , I surprised .

Anyone can explain why happend this ?

-met

View solution in original post

1 REPLY 1
AAdin.1
Associate II

SOLVED!!

It is solved again suddenly :D :D :D

I writed this post and ı walked at park about 1-2 hours.

When I checked again , I surprised .

Anyone can explain why happend this ?

-met