Hi all
I am working on STM32F030R8 chip,using Keil MDK. For every unit, it carries it own characteristics, and hence for every calibrated unit, I need to re-flash a part of the flash to put the characteristic in.
For example, the characteristics is an array of bytes, so I create a characteristic.c file to put the data at specific location: (0x0800F000)
const unsigned char array[] __attribute__(at(0x0800F000)) = {1, 2, 3, 4, 5, 6} ;
The compiler will generates object file: characteristic.o
Now the question is, how can I get this object file converted to a hex file, that I can just page flash into the target? I think there should have simple command from the MDK suite.
Thanks
Calvin
Documentation, review http://www.keil.com/support/man/docs/armutil/
The underlying format is from an era when processors clock at 1 MHz and below, so it is not at all complex http://www.keil.com/support/docs/1584/
Dumping a C structure to a .HEX file is something a first year college student should be able to do in under half an hour.