AnsweredAssumed Answered

STM32F4 Writing Additional Data to Program

Question asked by cornwell_mott.ben on Apr 6, 2016
Latest reply on Apr 6, 2016 by Clive One
This might be more of a programming question than a micro-related question:

I have firmware that I am programming to my STM32F4 micro using the UART bootloader. My software loads a selected BIN file and then programs the micro. I want to include the firmware version and date information in the BIN file, so I don't have to rely on file naming to identify different versions, but can instead just read the firmware version when the file is loaded by the UART programmer.
What I would like to do is include that data at the same program memory address of each BIN file, so that I can easily find it every time. I also want the file to be compatible with using the ST-LINK utility, in case I decide to program it with that tool. 
Is there a way to do this using compiler directives in the source code? 

Any suggestions would be very appreciated!

Outcomes