Question
STM32F4 Writing Additional Data to Program
Posted on April 06, 2016 at 18:39
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!