2026-02-02 1:23 AM
Hi all,
I've searched for similar post but solutions provided did not work for my case.
For compatibility reasons I needed to upgrade from ST-Link to Cube programmer CLI but I've encountered roadblocks while using the -w commands with the Cube CLI.
If I write directly with the CubeProgrammer UI, no issue at all, but if i try using CLI below error pops-up:
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=SWD mode=UR -w8 0x08080000 0x02 -v -hardRst ST-LINK SN : 54FF6C066685495431141687
██████████████████████████████████████████████████Error: |
Some details about:
Thanks all for your help and support with this.
Regards
G
2026-02-02 2:21 AM - edited 2026-02-02 2:49 AM
Hello Blast3r and welcome to the community!
According to UM2237, downloading using -w<8,16,32> requires the flash memory to be erased since it doesn't erase it in order to write.
STM32CubeProgrammer GUI does it for you automatically when you edit.