Hello Everyone,
I am using Keil uversion4 for writing my embedded program. I have written a sample program for STM32F437 micro controller(content of which is not important), after compiling my sample code i am getting a hex file along with the .axf file. Now I am trying to built a C program in Visual Studio, that would take this hex or .axf file(not yet decided) as input, extract the staring & ending address of the flash where the code will reside(along with the vector tables), then create an structure that would hold these values, this structure will also contain the entry point to the code.
As per my information the vector table of STM32F4 starts at an address multiple of 128 bytes, So if my flash starts at address 0x08000000 & my vector table starts from address 0x08000128 followed by the code, then I want to place the Structure, that i have created using Visual studio, at memory address 0x8000000, as the 1st structure element is an entry point to the embedded code so i think it won't be a problem to place it at the start of the sector.
I want my Visual studio application to xtract the desired information from the hex file, create a structure that would hold these value(along with some essential information such as the entry point value) & then I want to burn the code along with Structure to my STM32F4 such that in the flash the Structure would be placed 1st(at 0x08000000) followed by some padding, followed by the vector table(0x08000128) & Code.
So kindly suggest me some process through which i can combine the structure with the hex file & burn it to my micro controller flash in the desired sequence
Please help me out guys...as u could see Im in real mess
Thanks & Regards, Amit