Hi all, I am interested in an FLASH image(generated by MDK5 project) with only data[R/W] included. Also, I hope the image can be burned to any FLASH location(e.g., ox08008000). Could you provide me a sample project or a hint to generate this such project in Keil-MDK5.
The followings are my development environment information.
Development IDE: Keil-MDK5 MCU: STM32F429ZIY6
[File:data.h]
typedef struct Setting_{ unsigned int Ver; unsigned int DataA; unsigned int DataB; } Setting,*pSetting;
[File:data.c] #include "data.h"
Setting data={ { .Ver = 0x00010000, .DataA = 0x01376790, .DATAB = 0x00007861 };
Request To generate an Flash image located in 0x08001000 with size 4K, and the first 12 bytes are content of variable "data" as above.
Wouldn't a "Flash Image" of this nature be trivially easy to create as just a .HEX file? The Intel format is well documented, and not particularly complicated.
If you want this data placement as part of a bigger application image, then you'd want to look at how to use scatter files, and place data within specific segments/sections thereof.