2023-08-07 01:02 AM
Hi,
I have a STM32H747I-DISCO board and I'd like to HW debug a simple CubeMX project. I have CubeMX, CubeIDE all with the latest version. I've generated the code. After the code generation I have two subproject CM4 and CM7. I can Build both of them. Which one to start with the debugger? Should I combine the two elf files manually?
2023-08-07 02:27 AM
I don't know if it can help in your case, but I found these videos about advanced debugging:
https://youtube.com/playlist?list=PLnMKNibPkDnEDEsV7IBXNvg7oNn3MfRd6
2023-08-07 02:37 AM
This is not dual core
2023-08-07 03:12 AM
Have you tried using these keywords to search?
2023-08-07 03:17 AM - edited 2023-08-07 03:54 AM
Hello @Test User,
First let me thank you for posting.
You can debug two sub-projects running on a dual-core STM32 using the STM32Cube IDE.
In fact, this tool allows users to debug both cores simultaneously or independently.
If you want to debug both cores, you need to ensure that you have separated debugging configurations for each core.
Make sure you define the correct debugging configurations for each core to ensure smooth debugging operations.
For more information, I advise you to refer to AN5286 and AN5361, both available on st.com which explain how to proceed to debug dual core with STM32CubeIDE. You can check also this Youtube Link provided by ST.
https://www.youtube.com/watch?v=k3mXhPZSasw
Thx
Mahmoud
2023-08-08 01:22 AM
Thanks
What about when I need a binary file (release, not for debug)? Should I need combine CM4.elf and CM7.elf?
2023-08-15 12:26 AM
Hello @Test User,
Thank you for posting.
When you use an STM32H7 Dual Core board. You have the ability to generate a single binary file, containing the firmware for the cortex-M7 and the cortex-M4.
It is also possible to have two separated binary files for each core.
In order to generate a binary file, you ought to follow these steps:
In Cube IDE go to Project Settings --> C/C++ Build group --> Settings --> Tool Settings tab --> MCU Post build outputs --> Convert to binary file.
Thx
Mahmoud