2021-04-02 11:52 AM
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!
2021-04-03 12:02 AM
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
2021-04-03 02:45 AM
Maybe or this is standart rule, your NUCLEO stlink fw need upgrade, download stlink007 utility with latest fw and use it.
2021-04-03 04:00 AM
Thanks I will try the two options
John
2021-04-03 05:05 AM
Check if the default in the tool is to disable debugging.
You'd have thought that would yield a warning tool side, but ...
2021-04-03 09:48 AM
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!