Skip to main content
Associate
September 27, 2024
Question

Facing issue while debugging

  • September 27, 2024
  • 1 reply
  • 987 views

Hi, I've been trying to debug my led toggle code. But I'm getting error like "Error in final launch sequence" and "Failed to execute MI command". I was using STM32F769-Disco board.

1 reply

Andrew Neil
Super User
September 27, 2024

@Ratheesh wrote:

I'm getting error like ... 


"like" ?

Please be specific: post the actual, complete message you are getting - a screenshot and/or copy & paste from the output log.

Are you sure that your computer is actually seeing the Disco board's ST-Link?

https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/tac-p/698105/highlight/true#M956

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RatheeshAuthor
Associate
September 27, 2024

Hi, now I've attached the screenshot of that error message

Andrew Neil
Super User
September 27, 2024

You can paste into the post - then we can see it more easily:

AndrewNeil_0-1727429275744.png

So it's failing to load the .elf file - ie, your code.

Does that .elf file actually exist? Did you successfully build your project?

And, again, are you sure that your computer is actually seeing the Disco board's ST-Link?

If your computer can't see the ST-Link, then it's clearly not going to be able to use it to load your code...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.