cancel
Showing results for 
Search instead for 
Did you mean: 

Core is Halted after connecting using ST-Link CLI with HOTPLUG option

Bence Kaulics
Associate II
Posted on July 12, 2018 at 22:27

I am trying to connect to my running application and read some variable values from RAM. I am using ST-Link CLI with HOTPLUG option, but the core gets Halted after connect and the RAM content is invalid. The programmer is the on-board ST-Link of an STM32F4Discovery board, the target MCU parameters are included below. Here is my console output:

0690X0000060MA0QAM.png

If I issue a reset everything is OK, but I would like to omit the reset.

ST-Link Utility info:

0690X0000060MA5QAM.png

#st-link #st-link-cli #stm32f0
2 REPLIES 2
Bence Kaulics
Associate II
Posted on July 12, 2018 at 22:41

https://community.st.com/0D50X00009XkeadSAB

 

Bence Kaulics
Associate II
Posted on July 12, 2018 at 22:54

Upgrading to the latest version of ST-Link CLI solved the issue.

Version info:

0690X0000060MAAQA2.png

Though -sCore still says ''Halted'' but the RAM content is now OK, and the MCU does not seem to be restarting on connect.

Bence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ./ST-LINK_CLI.exe -c SWD HOTPLUG -sCore -r8 0x20000008 0x1

STM32 ST-LINK CLI v3.2.0.0

STM32 ST-LINK Command Line Interface

ST-LINK SN : Old ST-LINK firmware/ST-LINK already used

ST-LINK Firmware version : V2J14S0 (Need Update)

Old ST-LINK firmware detected!

Please upgrade it from ST-LINK->'Firmware update' menu.

Connected via SWD.

Target voltage = 2.9 V.

Connection mode : HotPlug.

Device ID:0x444

Device flash Size : 16 Kbytes

Device family :STM32F030x4/F030x6

Core is Halted

0x20000008 : 19

Bence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ^C

Bence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ^C

Bence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ./ST-LINK_CLI.exe -c SWD HOTPLUG -w32 0x20000008 0x0000001A

STM32 ST-LINK CLI v3.2.0.0

STM32 ST-LINK Command Line Interface

ST-LINK SN : Old ST-LINK firmware/ST-LINK already used

ST-LINK Firmware version : V2J14S0 (Need Update)

Old ST-LINK firmware detected!

Please upgrade it from ST-LINK->'Firmware update' menu.

Connected via SWD.

Target voltage = 2.9 V.

Connection mode : HotPlug.

Device ID:0x444

Device flash Size : 16 Kbytes

Device family :STM32F030x4/F030x6

Writing 0x0000001A at 0x20000008... OK

Bence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ./ST-LINK_CLI.exe -c SWD HOTPLUG -r8 0x20000008 0x4

STM32 ST-LINK CLI v3.2.0.0

STM32 ST-LINK Command Line Interface

ST-LINK SN : Old ST-LINK firmware/ST-LINK already used

ST-LINK Firmware version : V2J14S0 (Need Update)

Old ST-LINK firmware detected!

Please upgrade it from ST-LINK->'Firmware update' menu.

Connected via SWD.

Target voltage = 2.9 V.

Connection mode : HotPlug.

Device ID:0x444

Device flash Size : 16 Kbytes

Device family :STM32F030x4/F030x6

0x20000008 : 1A  00  00  00