Skip to main content
PLEE.2
Associate II
February 9, 2023
Solved

how to add a version information in image?

hello.

how to put the defined version information(32bit value) in the built image (test.hex or test.bin)?

    This topic has been closed for replies.
    Javier1
    Javier1Best answer
    Principal
    February 10, 2023

    I use prebuild scripts that includes some github information from the repository.

    https://community.st.com/s/question/0D53W00000q6pT7SAI/stm32cubeide-how-to-add-a-custom-pre-post-scripts

    You could do something similar with a 32 bit variable

    hit me up in https://www.linkedin.com/in/javiermuñoz/

    4 replies

    Javier1
    Javier1Best answer
    Principal
    February 10, 2023

    I use prebuild scripts that includes some github information from the repository.

    https://community.st.com/s/question/0D53W00000q6pT7SAI/stm32cubeide-how-to-add-a-custom-pre-post-scripts

    You could do something similar with a 32 bit variable

    hit me up in https://www.linkedin.com/in/javiermuñoz/
    PLEE.2
    PLEE.2Author
    Associate II
    February 13, 2023

    thanks. javier

    It's been a lot of help.

    by the way, i use spc5studio..There is no menu that corresponds to the above.

    I'm searching hard in my own way.

    I want to say thank you again.​

    ​

    Javier1
    Principal
    February 13, 2023

    I never used spc5studio, i cannot help you there

    hit me up in https://www.linkedin.com/in/javiermuñoz/
    Erwan YVIN
    ST Technical Moderator
    February 13, 2023

    Hello PLEE ,

    the solution provided by Javier is ok.

    you should create your own include file version.

    with static const char* VERSION = "myversion"

    Best Regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.