Hi;
I wrote a code for MC9S12C128 micro-controller two years ago, now I need those code again and tried to run it, it gave me strange error. By googleing it I couldn't solve it.
Why I have this error, since this code worked fine before?
The error is:
Link Error: L119: Vector allocated at absolute address 0xFFFE overlaps with sections placed in segment. absSeg221
Link Error: Link failed
please help me how can i fix it.
Thanks;
Sb
Hello Sb,
I suspect that your reset vector is specified in two places, in a vector table within your code, and also within the PRM file. If this is the case, comment out the entry in the PRM file.
Regards,
Mac
Thanks for response.
where is PRM file? could you tell me more specific?
Best;
I found PRM folder,there are two files with prm extension. did you talk about these files? then what do u mean by comment it?
There is only one reset vector defined...
Hello,
The file project.prm is the one of interest. At the end of the file, there should be a line containing something like the following entry:
VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
Modify this as follows, so that the line is treated as a comment only.
//VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
This is often preferred to removing the line altogether, so that it remains apparent where the standard file has been edited.
Regards,
Mac