Thank you very much for the reply. I did not find the attachment of the video. I have created the following codewarrior project and it is compiling properly, why is not showing any error. The main task of the project is to put the configuration parameters in the flash memory at known addresses and during the run time read those configuration parameters.
In main.c file
#pragma DATA_SEG __GPAGE_SEG PARAMETERS
unsigned int TESTDATA_1=3;
unsigned int TESTDATA_2=1;
unsigned int TESTDATA_3=2;
unsigned int TESTDATA_4=5;
unsigned int TESTDATA_5=8;
unsigned int TESTDATA_6=0;
#pragma DATA_SEG DEFAULT
void main(void) {
/* put your own code here */
unsigned int *__far localpointer;
unsigned int localvalue;
localpointer = (unsigned int * __far)(&TESTDATA_1);
localpointer = (unsigned int * __far)(&TESTDATA_2);
localpointer = (unsigned int * __far)(&TESTDATA_3);
localpointer = (unsigned int * __far)(&TESTDATA_4);
localpointer = (unsigned int * __far)(&TESTDATA_5);
localpointer = (unsigned int * __far)(&TESTDATA_6);
localvalue = *localpointer;
}
Linker file
PARAMETERS INTO PAGE_E0_0;
The output of the map file is generating as
TESTDATA_1 E08000 2 2 2 PARAMETERS
TESTDATA_2 E08002 2 2 1 PARAMETERS
TESTDATA_3 E08004 2 2 2 PARAMETERS
TESTDATA_4 E08006 2 2 2 PARAMETERS
TESTDATA_5 E08008 2 2 2 PARAMETERS
TESTDATA_6 E0800A 2 2 1 PARAMETERS
Why it is generating correctly at the expected addresses? Or it is wrong I am not able to understand properly. My concern is i have to place some 200 Variables in Flash from One known fixed location to another fixed location how to do it? The code i have shown is the actual code running in some of my systems should i plan to change the code immediately?
Thanks in advance