STM32CubeProgrammer Wrong erase parameter causing DEV_CONNECT_ERR
Windows 11, STM32CubeProgrammer v2.15 and ST Link
In the past we have used the older STLink software for programming ST micro's on our test stations and have moved to the STM32CubeProgrammer. Running the command from a standard command line window(based on commands seen here) seems to always kick out some form of parameter error.
"C:/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI.exe" -c port=swd -e all controller_01_15.hex -rst
-------------------------------------------------------------------
STM32CubeProgrammer v2.15.0
-------------------------------------------------------------------
ST-LINK SN : 38FF6806304E4B3019122243
ST-LINK FW : V2J29S7
Board : --
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x460
Revision ID : Rev B
Device name : STM32G07x/STM32G08x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0xB2
Debug in Low Power mode enabled
Error: Wrong erase parameter: "controller_01_15.hex"
If you ditch the erase parameter completely, it then complains about the connection parameter
"C:/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI.exe" -c port=swd C:\Python\furnace_control\hex_files_for_programming\controller_01_15.hex -rst
-------------------------------------------------------------------
STM32CubeProgrammer v2.15.0
-------------------------------------------------------------------
Warning: Wrong connect parameter: "controller_01_15.hex"
ST-LINK SN : 38FF6806304E4B3019122243
ST-LINK FW : V2J29S7
Board : --
Voltage : 3.25V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x460
Revision ID : Rev B
Device name : STM32G07x/STM32G08x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0xB2
Debug in Low Power mode enabled
MCU Reset
Software reset is performed
Hopefully there is a simple answer as the parameters used seem to match the command line help usage.
Thanks
