cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE Download SREC/HEX file

dsmail1
Associate II

I apologize in advance, but I've searched and searched with no luck for the following question.

I create an SREC file after a debug build in CubeIDE. I use srec_cat to add a CRC to the end of FLASH space. All good. What I would like to do is debug the app by using a launch group.

1) first, download the SREC file with some external tool inside of CubeIDE (the SREC contains the CRC)

2) then "download" the elf file, actually don't download it, but use the symbolic information from it for debugging purposes.

 

I am totally confused on how to add an external tool (such as STM32 Programmer) as an external tool into a launch group. It seems to look for .launch files.

I'm sure that I'm not the first to encounter this issue, but I can't seem to find any documentation on how to accomplish this. I believe STM32CubeIDE does not natively support downloading anything other than elf files into FLASH

Thank You!

2 REPLIES 2

"launch groups" came up in this thread - but everyone went quiet on any documentation about how to do it ...

Pavel A.
Evangelist III

@dsmail1 What you've described is not a "launch group". It is just a normal debug session with several files.

Open the debug settings (launch) dialog and add there as many images as you want. For every image you can specify to load the binary or only to read debug info. Specify your srec to load and the original .elf for the symbols.