Skip to main content
Visitor II
October 14, 2023
Solved

trash in hex file

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?

    This topic has been closed for replies.
    TDK
    TDKBest answer
    October 14, 2023

    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""."

    2 replies

    TDK
    TDKBest answer
    October 14, 2023

    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""."
    Tesla DeLorean
    Guru
    October 14, 2023

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

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