Skip to main content
Hans T
Associate III
February 27, 2021
Question

STM32H7 STM32H755 How can i combinate 2 hex files (cm4 & cm7) ?

  • February 27, 2021
  • 2 replies
  • 986 views

Hello

After generating the Code from cubeMX and compiling with cubeIDE, elf / hex files are created. CM4.hex and CM7.hex

how can I combine these two in one hex file?

where can I find this setting?

This topic has been closed for replies.

2 replies

Markus GIRDLAND
ST Employee
March 1, 2021

Hello Hans!

Usually separate hex files are programmed sequentially to the flash using your device programmer. If you want to combine several hex files there are some free software which can be used. E.g. srec_cat.exe available at sourceforge. Although I haven't used it myself.

Normally in STM32CubeIDE the two elf files from CM4 and CM7 are used when starting the debug session. Both files can be loaded by selecting them in the Load List in the Debug configuration.

Hans T
Hans TAuthor
Associate III
March 1, 2021

Thanks, i'm going to try.