2018-07-12 01:27 PM
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:
If I issue a reset everything is OK, but I would like to omit the reset.
ST-Link Utility info:
#st-link #st-link-cli #stm32f02018-07-12 01:41 PM
2018-07-12 01:54 PM
Upgrading to the latest version of ST-Link CLI solved the issue.
Version info:
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.0STM32 ST-LINK Command Line InterfaceST-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:0x444Device flash Size : 16 KbytesDevice family :STM32F030x4/F030x6Core is Halted
0x20000008 : 19Bence /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# ^CBence /c/Program Files/STMicroelectronics/STM32 ST-LINK Utility 4.2/ST-LINK Utility# ./ST-LINK_CLI.exe -c SWD HOTPLUG -w32 0x20000008 0x0000001ASTM32 ST-LINK CLI v3.2.0.0STM32 ST-LINK Command Line InterfaceST-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:0x444Device flash Size : 16 KbytesDevice family :STM32F030x4/F030x6Writing 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.0STM32 ST-LINK Command Line InterfaceST-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:0x444Device flash Size : 16 KbytesDevice family :STM32F030x4/F030x60x20000008 : 1A 00 00 00