Skip to main content
Associate II
May 11, 2024
Question

Not able to flash stm32g030c8t6 with st link v2

  • May 11, 2024
  • 5 replies
  • 2225 views

-------------------------------------------------------------------

STM32CubeProgrammer v2.16.0

-------------------------------------------------------------------

 

 

 

Log output file: C:\Users\adity\AppData\Local\Temp\STM32CubeProgrammer_a09404.log

ST-LINK SN : 37FF6C064243393022292357

ST-LINK FW : V2J43S0

Board : --

Voltage : 2.93V

SWD freq : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID : 0x466

Revision ID : Rev 1.1

Device name : STM32G03x/STM32G04x

Flash size : 64 KBytes

Start Address : 8000000

Device type : MCU

Device CPU : Cortex-M0+

BL Version : 0x53

 

 

 

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a09404.srec

File : ST-LINK_GDB_server_a09404.srec

Size : 37.62 KB

Address : 0x08000000

 

 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 18]

Error: failed to erase memory

 

 

Error: failed to erase memory

Encountered Error when opening C:\ST\STM32CubeIDE_1.15.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.200.202311302303\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

    This topic has been closed for replies.

    5 replies

    EXUE.2
    ST Employee
    May 11, 2024

    it looks like you use STM32CubeIDE_1.15.0 to call STM32_Programmer_CLI.exe download the FW to STM32G03x/STM32G04x?

    I have tried use independent STM32CubeProgrammer.exe (both v2.14.0 and v2.17.0) to download FW to STM32G0B1RE, it are worked, can you use independent STM32CubeProgrammer.exe to try it?

    log as below:

    14:44:24 : STM32CubeProgrammer API v2.14.0 | Windows-64Bits
    14:44:57 : UR connection mode is defined with the HWrst reset mode
    14:44:57 : ST-LINK SN : 066BFF383034434757243008
    14:44:57 : ST-LINK FW : V2J45M30
    14:44:57 : Board : NUCLEO-C092RC
    14:44:57 : Voltage : 3.26V
    14:44:57 : SWD freq : 4000 KHz
    14:44:57 : Connect mode: Normal
    14:44:57 : Reset mode : Software reset
    14:44:57 : Device ID : 0x467
    14:44:57 : Revision ID : Rev Z
    14:44:57 : Debug in Low Power mode is not supported for this device.
    14:44:57 : UPLOADING OPTION BYTES DATA ...
    14:44:57 : Bank : 0x00
    14:44:57 : Address : 0x40022020
    14:44:57 : Size : 64 Bytes
    14:44:57 : Bank : 0x01
    14:44:57 : Address : 0x40022080
    14:44:57 : Size : 16 Bytes
    14:44:57 : UPLOADING ...
    14:44:57 : Size : 1024 Bytes
    14:44:57 : Address : 0x8000000
    14:44:57 : Read progress:
    14:44:57 : Data read successfully
    14:44:57 : Time elapsed during the read operation is: 00:00:00.007
    14:45:01 : Read File: C:\GitHub\NUCLEO-C092RC_G0B1RE\project_NUCLEO-C092RC_G0B1RE\EWARM\NUCLEO-C092RC_G0B1\Exe\NUCLEO-C092RC_G0B1RE.srec
    14:45:01 : Number of segments: 1
    14:45:01 : segment[0]: address= 0x8000000, size= 0x92A7
    14:45:03 : Memory Programming ...
    14:45:03 : Opening and parsing file: NUCLEO-C092RC_G0B1RE.srec
    14:45:03 : File : NUCLEO-C092RC_G0B1RE.srec
    14:45:03 : Size : 36.66 KB
    14:45:03 : Address : 0x08000000
    14:45:03 : Erasing memory corresponding to segment 0:
    14:45:03 : Erasing internal memory sectors [0 18]
    14:45:04 : Download in Progress:
    14:45:05 : File download complete
    14:45:05 : Time elapsed during download operation: 00:00:01.181

    Associate II
    May 11, 2024

     

    Hi EXUE.2, thank you for the reply. I am new to the stm32, But I have already tried to using the STM32CubeProgrammer but still it is not working, and the programming is crashing