cancel
Showing results for 
Search instead for 
Did you mean: 

programming using CLI taking a lot more time than using ST-LINK utility

JGreg.2
Associate III

Hi everyone,

First, here is my set up:

  • computer: windows 10
  • uC: STM32F030K6T6
  • flashing/debugging hardware tool: ST LINK v2 ( from nucleo board)

I have noticed that it takes almost 30 secs to do same operation using CLI (wether directly launching a batch file or launching it from labview) whereas it takes only few second using STL LINK utility.

 

I would like to reach same speed because I want to automize the programming sequence.

Do you have any idea that might help ?

Here is the batch content, just in case: 

@Echooff
cd c:\prog_config_serie
ST-LINK_CLI.exe -P C:\prog_config_serie\NextPM_EFS_FB42_23-02-2024.bin 0x08000000 -V while_programming
ST-LINK_CLI.exe -Rst

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

please try -ob RDP=0xAA

 or -rdu instead

View solution in original post

6 REPLIES 6
Pavel A.
Evangelist III

Please try the CubeProgrammer CLI.

Ok, this work better: it takes only 2 seconds to mass erase, reprogrammation and verify. Thank you !

Several questions by the way:

  • why CLI is longer than ST-link utility ? is there any fundamuntal reason ?
  • what's the fundamuntal difference between CLI and CubeProgrammer CLI ?

Best regards,

Pavel A.
Evangelist III

#1: no idea

#2: the first is no longer supported, the second is.

 

Hello,

I am trying to flash a code (using CubeProgrammer CLI) on a uC which has RDP=1. So obviously, I cannot programm it.

I have trid the "-ob RDP=0" command but it doesn't work. Any idea about the commands sequence to send ?

 

Hi, anyhelp please ?

Hello,

please try -ob RDP=0xAA

 or -rdu instead