cancel
Showing results for 
Search instead for 
Did you mean: 

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

CShac.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

1 REPLY 1
TDK
Guru

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".