cancel
Showing results for 
Search instead for 
Did you mean: 

trash in hex file

Rukki
Associate

Hi all!

I have a project in STM32CudeIde that being downloaded via ST-Link works correctly. Also I have a hex file in MyProject/Release. If I compare downloaded via ST-Link code inside MCU with the hex file, they are different. So I cannot use the hex file for my own bootloader because the hex file code is trash (interrupt table different, code different...).

How can I get true hex file of code?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Conversion to hex file is an option available in project output settings.

TDK_0-1697292028211.png

If the current HEX file is different than your code, then it wasn't generated with this process.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

Conversion to hex file is an option available in project output settings.

TDK_0-1697292028211.png

If the current HEX file is different than your code, then it wasn't generated with this process.

If you feel a post has answered your question, please click "Accept as Solution".

Generate fresh binaries or hex files from the .ELF file using objcopy

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..