2019-08-14 04:40 PM
I built an elf executable for the STM32H743ZI. I did not create this executable from within STM32CubeIDE. Still, I would like to debug it from within STM32CubeIDE. How do I load the elf file in the STM32CubeIDE and debug the executable on a target (STM32H743ZI). Can this be done?
Solved! Go to Solution.
2019-08-16 12:04 AM
The procedure described in the attached PDF works for me.
I used STM32CubeIDE v1.0.0 to generate "external ELF" and then used STM32CubeIDE v1.0.2 to debug this external ELF.
Regards,
Ethan
2019-08-14 06:20 PM
I think there is an Atollic type method using the debugger script to pull in, or associate, multiple files with the debug session. I think it was in the context of debugging a loader and application in a single session. The search here is frustrating, I will try and dig it out
In Keil it was possible to create a shell project, build it, then substitute the .AXF (ELF), and download and debug the project you want to look at. Keil also provides for a LOAD directive in the debugger command line, or debugger script.
2019-08-16 12:04 AM
2021-12-16 11:30 AM
I found a different way that I prefer.
AT THIS POINT, THE PROJECT CAN BE DEBUGGED
2021-12-17 06:34 AM
Even better File > Import > STM32 Cortex M executable
2021-12-17 06:53 AM
Absolutely true! Definitely the easiest way to solve the problem posed in the question.
My problem was a little different - I wanted to also be able to build my project via my own makefile using the STM32CubeIDE. Hence the new project creation in my answer. But I'm VERY glad someone else answered this as well - it took way too long for me to determine the solution.