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 trying to write functions at specific locations. I am using KEIL 4 IDE ... and LPC2478 Though I could find a keyword "FIXED" which says one can write function at specific locations, but don't know how to use it .
This is what I want to achieve ....
for eg :
void main(void){ function_1(); function_2();
}
void function_1(){
void function_2(){
I need "function_1()" to be placed at specific location ...say...address 0x2000.
and
I need "function_2()" to be placed at specific location ...say...address 0x4000.
Can this be achieved ....and if yes How can I do this ?
All suggestions are welcome.... (I could not understand how the keyword "FIXED" works )....
Thanks ... K.Ganesh
Yes ... I have a reason to have these functions at fixed locations.
To update the the hex file which is residing in a external data flash.
with ref to my example :
Assume I have a image of function "main" and "function_1" in a external data flash. And then Function_2 may read the data from the external data flash and update "main" and then update "function_1".....
As on Today I have 2 files at different offsets ..
What I need is a single file and functions at specific locations.
Thanks...