cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a version information in image?

PLEE.2
Associate II

hello.

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

1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk

View solution in original post

4 REPLIES 4
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
PLEE.2
Associate II

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

I never used spc5studio, i cannot help you there

we dont need to firmware by ourselves, lets talk
Erwan YVIN
ST Employee

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