cancel
Showing results for 
Search instead for 
Did you mean: 

I am starting with this tool and have problems to get it running. I have now two Nucleo-64 STM32L476RGT boards. But the basic is not working. When I run the application in its most basic form the "Debugger is shutting down"directly

JNiva.1
Associate II

I perform the following steps:

1 Load the board using the board sellector

2 On the pinout view activating a PA8 pin and reseting that PIn to its defaults

3 Generate code by "save"

4 Build the project "Build project"

5 Run "Debug As

STMicroelectronics ST-LINK GDB server. Version 5.8.0

Copyright (c) 2020, 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

Waiting for debugger connection...

Debugger connected

Debugger connection lost.

Shutting down...

I can not find the problem!

5 REPLIES 5
KnarfB
Principal III

Don't know what "2 On the pinout view activating a PA8 pin and reseting that PIn to its defaults" is good for, but a Nucleo board "hello world"/blinky works reliably as shown in the videos. Check you USB, change USB port/cable if possible and try to connect/read/write the board from another tool like STM32CubeProgrammer.

hth

KnarfB

MM..1
Chief II

Maybe or this is standart rule, your NUCLEO stlink fw need upgrade, download stlink007 utility with latest fw and use it.

JNiva.1
Associate II

Thanks I will try the two options

John

Check if the default in the tool is to disable debugging.

You'd have thought that would yield a warning tool side, but ...​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
JNiva.1
Associate II

Hai

1-I have orded a new USB kabel and waiting for the delivery.

2-I have installed the Cube program tool

I am new to this tool but it did not connect well, I do now beter understand the tool

What I see in the log is a DEV_CONNECT_ERR

I have updated the firmware but still have on line 3 the 18:01:39 : ST-LINK error (DEV_CONNECT_ERR). I do not know exactly what the meaning is.

18:01:20 : STM32CubeProgrammer API v 2.6.0

18:01:39 : Warning: Device changed, refreshing...

18:01:39 : ST-LINK error (DEV_CONNECT_ERR)

18:01:39 : ST-LINK SN : 066DFF544856846687080823

18:01:39 : ST-LINK FW : V2J37M26

18:01:39 : Board    : NUCLEO-L476RG

18:01:39 : Voltage   : 3.26V

18:01:39 : SWD freq  : 4000 KHz

18:01:39 : Connect mode: Normal

18:01:39 : Reset mode : Software reset

18:01:39 : Device ID  : 0x415

18:01:39 : Revision ID : Rev 4

18:01:39 : UPLOADING OPTION BYTES DATA ...

18:01:39 :  Bank     : 0x00

18:01:39 :  Address    : 0x40022020

18:01:39 :  Size     : 20 Bytes

18:01:39 :  Bank     : 0x01

18:01:39 :  Address    : 0x40022044

18:01:39 :  Size     : 16 Bytes

18:01:39 : UPLOADING ...

18:01:39 :  Size     : 1024 Bytes

18:01:39 :  Address    : 0x8000000

18:01:39 : Read progress:

18:01:39 : Data read successfully

18:01:39 : Time elapsed during the read operation is: 00:00:00.007

I have downloaded a example Beacon. That example is working : The Debuger is starting and working Download verified successfully!

When I start my basic example created yesterday and try to build the code and run the debugger I recieve the message : No ST_Link detected. But the USB kabel is already correct connected in the board.

I perform the following steps:

1 Load the board using the board sellector

2 On the pinout view activating a PA8 pin and reseting that PIn to its defaults

3 Generate code by "save"

4 Build the project "Build project"

5 Run "Debug As

Removing the USB kabel and reconnecting makes the debuger start correctly!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ir seems that it is working now, I do not know how it is solved.

Thanks for helping!!!!!!!!!!!!!!!!!!!!!!!!!!!!