cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747I-DISCO: testing a simple project

Test User
Associate III

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?

6 REPLIES 6
RhSilicon
Lead

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

This is not dual core

RhSilicon
Lead

Have you tried using these keywords to search?

https://www.google.com/search?q=stm32+dual+core+debugging

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

 

 

 

Thanks

What about when I need a binary file (release, not for debug)? Should I need combine CM4.elf and CM7.elf?

 

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.

MahmoudBenRomdhane_0-1692029697929.png

Thx

Mahmoud