We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
You can make this work pretty much as-is by telling armlink '--entry=data' and '--diag_warning=L6204E' (to stop it thinking that you don't know what you're doing).