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

how to add a version information in image?

  • February 9, 2023
  • 3 replies
  • 1524 views

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.
    Best answer by Javier1

    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

    3 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 Employee
    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