Skip to main content
Visitor II
March 1, 2024
Solved

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

  • March 1, 2024
  • 2 replies
  • 2172 views

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

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

    Hello,

    please try -ob RDP=0xAA

     or -rdu instead

    2 replies

    Super User
    March 1, 2024

    Please try the CubeProgrammer CLI.

    JGreg.2Author
    Visitor II
    March 4, 2024

    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,

    Super User
    March 4, 2024

    #1: no idea

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

     

    JGreg.2Author
    Visitor II
    October 24, 2024

    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 ?

     

    JGreg.2Author
    Visitor II
    October 28, 2024

    Hi, anyhelp please ?