Initialisation from PE occurs compiler faild

Discussion created by Guest on Feb 20, 2009
Latest reply on Feb 26, 2009 by Benjamin Haeberli

Hi

 

I use for the moment CW 6.2. Processor expert has I also. If I now the initialization of the vectors table for the interruptslet make from the PE,  there is the following error:

Error : C1822: Type mismatch (expected 'void (*near)()', fiven 'unsigned int')

The code ist the following:

 

#ifndef UNASSIGNED_ISR
  #define UNASSIGNED_ISR 0xFFFF        /* unassigned interrupt service routine */
#endif

void (* near const _vect[])() @0xFFCE = { /* Interrupt vector table */
         Intervall1sec,               

  =>    UNASSIGNED_ISR,              /* Here is the first faild, all UNASSIGNED_ISR causes a faild

         UNASSIGNED_ISR,             

         UNASSIGNED_ISR,              

          UNASSIGNED_ISR,              

         UNASSIGNED_ISR,              

         UNASSIGNED_ISR,              

         UNASSIGNED_ISR,              

         UNASSIGNED_ISR,    

         ...   

 

I'm using the MC9S08QE8CWJ.        

Outcomes