Hi,
I'm trying to write a code of interrupt routines. I found an example project of "dashboard"of freescale. (the location of the file is
C:\Program Files\Freescale\CodeWarrior for HCS12 V4.7\(CodeWarrior_Examples)\HCS12X\S12X_Automotive_Cluster_Demo\dashboard.mcp
I'm trying to modify this project. However, after I make some modifications I started to encounter some problems. It gives a linker error:
the definition of this error is given below:
[error]
L1823: External object SwLEDData in C:\Users\ayyazilim\Documents\work\p23_03\p23_03_Data\Full_Chip_Simulation\ObjectCode\CPU12ISRs.c.o
created by default
Project: p23_03.mcp, Target: Full Chip Simulation
L1823: External object tickCounter in C:\Users\ayyazilim\Documents\work\p23_03\p23_03_Data\Full_Chip_Simulation\ObjectCode\CPU12ISRs.c.o
created by default
Project: p23_03.mcp, Target: Full Chip Simulation
Link Error : L1119: Vector allocated at absolute address 0xFFFE overlaps with sections placed in segment .absSeg647
Project: p23_03.mcp, Target: Full Chip Simulation
Link Error : Link failed
Project: p23_03.mcp, Target: Full Chip Simulation
[/error]
I attached the project also. Can any one tell me the reason for this, please?
Solved! Go to Solution.
Hello
The warning messages L1823 are generated because you have only external declarations for variable SwLEDData and tickCounter.
In one of your ANSI C source files you need to explicitly define the variables as follows:
SwLEDDataType SwLEDData;
int tickCounter;
To remove the error message L1119 remove the line
VECTOR 0 _Startup
from your .prm file
CrasyCat
Hello
The warning messages L1823 are generated because you have only external declarations for variable SwLEDData and tickCounter.
In one of your ANSI C source files you need to explicitly define the variables as follows:
SwLEDDataType SwLEDData;
int tickCounter;
To remove the error message L1119 remove the line
VECTOR 0 _Startup
from your .prm file
CrasyCat