Skip to main content
FMass.1
Associate III
April 2, 2024
Solved

STM32H7 MCU dual processor programming file

  • April 2, 2024
  • 1 reply
  • 1542 views

Hi, I have a question. I just completed a program for a dual processor MCU, specifically an STM32H745, which has one M7 core and one M4 core.

Now I have to organize the production of a hundred cards, and the manufacturer asked me for the .hex file to load into the chip. But in the CubeIDE project, two completely separate projects were generated, each of which generated a .hex file. So I find myself in the situation of having two .hex files, one for the M4 and one for the M7, while the manufacturer of the card, having only one chip, expects only one .hex file to load.

How should I proceed in this situation, what is the exact procedure to load two .hex file into the same chip?

Best answer by mƎALLEm

Hello,

I think you're in the same situation as the one in this thread.

You need to merge the two hex files in one using srec_cat tool.

Hope it helps.

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
April 2, 2024

Hello,

I think you're in the same situation as the one in this thread.

You need to merge the two hex files in one using srec_cat tool.

Hope it helps.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
FMass.1
FMass.1Author
Associate III
April 2, 2024

ok, very clear thank you very much.

Out of curiosity, if I had a program that only uses the M7 core, could I load only the M7 hex file, as if it were a normal single core MCU?

mƎALLEm
Technical Moderator
April 2, 2024

Yes if there is no dependency with CM4 in the application.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.