2023-08-08 9:21 PM
Hi,
While flashing code in STM32G474VBT6, I am getting below error. After reinstalling cube ide and cube programmer, same error continues.
STMicroelectronics ST-LINK GDB server. Version 7.4.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------
Log output file: C:\Users\NIKHIL~1\AppData\Local\Temp\STM32CubeProgrammer_a02888.log
ST-LINK SN : 68005200040000363036544E
ST-LINK FW : V2J42S7
Board : --
Voltage : 3.26V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x469
Revision ID : Rev X
Device name : STM32G47x/G48x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0xD5
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a02888.srec
File : ST-LINK_GDB_server_a02888.srec
Size : 73.29 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Error: Operation exceeds memory limits
Error: failed to erase memory
Encountered Error when opening C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.0.202305091550\tools\bin\STM32_Programmer_CLI.exe.
Error in STM32CubeProgrammer
Shutting down...
Exit.
Can anyone help me to get solution?
Thanks
Nikhil
Solved! Go to Solution.
2024-05-29 4:05 AM
No worries, keep up the good work
2025-06-09 5:39 PM
I faced this issue for a while. After trying all the things listed above, and having mixed results, I discovered that I had a problem on the Reset line.
It was being loaded by some other circuitry - newly plugged in - and was resting near the 'reset threshold' voltage. So occasionally the MCU would reset, just after connecting to the STlink, causing whatever was happening (usually erase) to fail.
Fixed the reset level- problem went away.
HTH.
2025-06-15 10:36 PM
In my case, my STM32H747 got locked due to certain power configuration settings selected in CubeMX. Every time I tried to flash the code, I kept encountering an error.
To resolve this, I pulled the BOOT0 pin low and performed a full chip erase using STM32CubeProgrammer. After that, the issue was completely resolved.
Since then, I’ve made it a point to keep STM32CubeIDE and CubeMX updated regularly, and I haven’t faced this problem again in any of the latest versions.
2025-06-16 3:26 AM - edited 2025-06-16 3:26 AM
every time i have updated Cube Ide something breaks, no exceptions. (7 years experience now)
I guess you were lucky or i was not.