STM32CubeIDE Failed to execute MI command: load
- May 23, 2022
- 5 replies
- 8058 views
I have been developing successfully with STM32CubeIDE for several years. My current project has been going ok, with lots of in-application debugging, until my latest revision. The debugger quits with the following error message:
----------------------------------
Error in final launch sequence:
Failed to execute MI command:
load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf
Error message from debugger back end:
You can't do that when your target is `exec'
Failed to execute MI command:
load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf
Error message from debugger back end:
You can't do that when your target is `exec'
Failed to execute MI command:
load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf
Error message from debugger back end:
You can't do that when your target is `exec'
You can't do that when your target is `exec'
--------------------------------------
I can revert to a previous revision of code, which is identical except for an unused index variable, and it debugs fine.
I have tried all combinations of unplugging/re-plugging, quits and computer restarts, and I consistently get the problem with my latest revision but not the previous rev.
I saved off the debugger log for the working case and the non-working case, and when I review them, there's nothing that jumps out at me as the problem for why the debugger gives up, but I don't know what most of the log entries mean.
Anyone have any insight?
For the moment I'm making a new branch from my previous revision and trying to work from there, but I'm afraid the same thing will pop up again.
