cancel
Showing results for 
Search instead for 
Did you mean: 

When trying to flash my program, I get an error Log that I do not understand, and that I can't find any information about online

Ubus99
Associate III

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.

3 REPLIES 3
Ubus99
Associate III

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...

prain
Senior III

In debug option menu, set openOCD instead of stlink gdb server. try to debug with openOCD and post error logs here.

Ubus99
Associate III

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.