2020-08-08 02:30 AM
when trying to flash my program, i get this error:
Error in final launch sequence:
Failed to execute MI command:
load >>Path<<\\Debug\\>>project_name<<.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load >>Path<<\\Debug\\>>project_name<<.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load >>Path<<\\Debug\\>>project_name<<.elf
Error message from debugger back end:
Load failed
Load failed
I thought there may be an error in the run configuration, so I created an empty project for the f103rct, and it flashes without problems.
But even after matching the configurations, I get the same error.
to make it even more confusing, the ST-Link utility flashes the .bin file just fine.
2020-08-08 02:41 AM
Additional information:
STMicroelectronics ST-LINK GDB server. Version 5.6.0
Copyright (c) 2020, 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
Debugger connection lost.
Shutting down...
2020-08-08 03:46 AM
In debug option menu, set openOCD instead of stlink gdb server. try to debug with openOCD and post error logs here.
2020-08-08 04:37 AM
I made a new project and migrated all the code, took some time but now it works.
I still don't know what the exact error was.