Skip to main content
Visitor II
April 25, 2022
Question

STLINK-V3MINI is not doing the full erasing the memory in the second programming cycle. In the test system, we have two steps of full erase the flash memory. In the first it works well, but in the second it isn't able to do the flash erase.

  • April 25, 2022
  • 4 replies
  • 1609 views

After this second trial, the only way that I'm able to program the MCU is using the JLINK, but I would really need the STLINK-V3MINI working as expect.

    This topic has been closed for replies.

    4 replies

    ST Employee
    April 25, 2022

    Hello @RBitt.1​ 

    Are you able to test is with a STLINK V2 ? Can you give me the version of STMCubeProgrammer you are using ( STM32_Programmer_CLI.exe -version) ?

    RBitt.1Author
    Visitor II
    April 25, 2022

    Hi Bruno,

    tested with STLINKv2 -> same issue

    Cube updated to 2.10.0, tested with 2.9 as well, same issue.

    RBitt.1Author
    Visitor II
    May 2, 2022

    Hi Bruno,

    Is there any news/suggestion to test?

    Thank you!

    ST Employee
    May 3, 2022

    Ciao @RBitt.1​ 

    Sorry about the delay, it took me some time to find a STMF board.

    I confirm that the right way to program is to execute the following command :

    STM32_Programmer_CLI.exe -c port=SWD mode=UR -d <file_to_program> -ob rdp=0xBB

    That should download the file and lock the device in RDP level 1. If you want to verify the download just, add -v just before -ob.

    To unlock the part, (mass erase will be performed automatically), execute

    STM32_Programmer_CLI.exe -c port=SWD mode=UR -ob rdp=0xAA

    Is it ok for you ?

    BR,

    Bruno

    PS: Please select as best answer to improve best hit on query

    Graduate II
    May 2, 2022

    As always - use "connect under reset" and "hardware reset" modes.