Failed to execute MI command load .elf
Hi everyone!
I have a STM32F412RET7 MCU and I made myself a breakout board. However when I try to upload a code I get an error: Failed to execute MI command ... load .elf. This is written in the log file:
Log output file: C:\Users\GOSHOA~1\AppData\Local\Temp\STM32CubeProgrammer_a02884.log
ST-LINK SN : B55B5A1A00000000C8BEF001
ST-LINK FW : V2J42S7
Board : --
Voltage : 3.33V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x441
Revision ID : Rev C
Device name : STM32F412
Flash size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x91
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a02884.srec
File : ST-LINK_GDB_server_a02884.srec
Size : 3.88 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening C:\ST\STM32CubeIDE_1.13.2\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.
I've tried to upload using ST Link Utility, but I cannot find a file supported by it. I tried the CubeProgrammer also and when I try to download the code to the MCU it says Operation succsessful, but the LED doesn't blink. I tried with all kinds of programmers, updated their firmware, I've changed a lot of options in the debugger section of the STCubeIDE, but again it's the same result. I've also tried to program a blue pill board. Again the same result. The strangest of all is that some time ago it actually succeeded, however I didn't understand how.
Could anyone give me an advice?
Thank you!