cancel
Showing results for 
Search instead for 
Did you mean: 

How To reset the flash control and option bytes of stm320G0XX

adityasatyaji
Associate II

Hello ,

does anyone know how to reset flash control resetting method or factory resetting the stm32 microcontroller 

as I am using stm320g030c8t6 in custom board which is in testing but suddenly I am not able to flash controller and getting this error which I am not able solve. Read and Write protection is off and option bytes are all ok.

 

 

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

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

1 REPLY 1
Imen.D
ST Employee

Hello @adityasatyaji,

Please make sure to upgrade the ST-LINK firmware.

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen