cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute MI command after update to IDE

pretoriandave
Associate III

Hi All,

I know the dreaded 'Failed to load MI command' error has been much discussed on the forum but I can't find any posts which match this set of circumstances, so hoping somebody can help.

My project was working perfectly on STM32G0 but I need to port it to STM32C0. My IDE was at version 1.13.2 (I don't like updating unless I'm forced to and this is a good example of why) but C0 is a new part so I had no choice. It updated to 1.17.0 and of course that also forced an update to ST-LINK.

Now nothing works. I can neither debug nor run my previously working code on the target board, which I know is just fine. I've tried swapping the ST-LINK to a different USB port and also changing the port number in Debug Configurations to no avail.

Note that I elected not to migrate the project across to 1.17.0 when it was offered as I thought changing the least amount possible would be the best approach. Maybe that's the issue but I don't know how to take up the offer now.

The new C0 project which was built using 1.17.0 in the first place exhibits the same problem.

I'm relatively new to this ecosystem (and wish I could say I was enjoying the experience) so have no clue what to do next. Thanks for any help anyone can provide.

 

pretoriandave_0-1740427561434.png

pretoriandave_1-1740427607194.png

 

3 REPLIES 3
Pavel A.
Evangelist III

Usually caused by debug or run configurations remaining from the older IDE version.

Try to create a new debug config from scratch.

#bugreport CubeIDE team, can you consider to fix tools paths in old configs automatically?

 

Thanks @Pavel A. How does one go about that? I tried cleaning the project but it made no difference. Thanks

AScha.3
Chief III

Try with setting: connection mode: software reset.

If you feel a post has answered your question, please click "Accept as Solution".