This is probably very simple but I am new to this. I have a MC12311 IC and I am trying to add an RTC interrupt to my code by manipulating the Linker_QE32 file. My interrupt is written directly before the main loop as follows:
void RTC_ISR(void)
{
RTCSC = RTCSC | 0x80; //clear flag
}
My understanding is that I need to add information to the linker file to specifiy that it is vector number is 24 and its address is 0xFFCE & FFCF. The bottom of the Linker_QE32 file specifies the startup vector, so I added the RTC vector as well
VECTOR 0 _Startup /* reset vector: default entry point for a C/C++ application. */
VECTOR 24 RTC_ISR /* I added this line!!. */
However, upon compiling, I get an error:
"Vector allocated at absolute address 0xFFCE overlaps with sections placed in segment RES_IRQ_VECTOR_TABLE_FLASH"
Does anyone know what I am doing wrong? Can anyone suggest what I should try next?
Thanks!