Skip to main content
CShac.1
Visitor II
August 25, 2020
Solved

ST-LINK_CLI -P (program command) 'mechanics' question

  • August 25, 2020
  • 1 reply
  • 741 views

Hi folks,

I'll try to keep it short. I'm working with an STM32F103xx MCU and an ST-LINK/V2 probe. I'd like to use it to program the MCU. I've been reading the ST-LINK_CLI user manual, and the STM32F10xxx programming manual. I have this question: How much of the programming sequence is handled by the '-P' command offered by ST-LINK_CLI? Do I have to manually reset the MCU by using the -Rst or -HardRst command, then unlock the flash by writing the keys to the FLASH_KEYR register? Or does '-P' handle such things?

Thank you,

Cole

This topic has been closed for replies.
Best answer by TDK

If you just want to program, "-P file.hex" is all you need, as long as the SWD pins are active.

1 reply

TDK
TDKBest answer
August 25, 2020

If you just want to program, "-P file.hex" is all you need, as long as the SWD pins are active.

"If you feel a post has answered your question, please click ""Accept as Solution""."