Hi Kef,
Thankx for your help and comments, now I tryed to compile to it with the new compiler S12X 4.7.12 ( new lkf File, vector_s12x, crtsx.s and MAKEFILE) and load the elf File with the Indart on.
CLR_BIT(MCCTL,MCEN); //Modulus Down-counter EnableSET_BIT(MCCTL,MODMC);//Modulus Mode enableSET_BIT(MCCTL,RDMCL);//Read Modulus Down-Counter LoadSET_BIT(MCCTL,MCEN); //Modulus Down-counter EnableSET_BIT(MCCTL,FLMC);// Starte der CounterMCCNT = 12000;//(T_UI16)(FCPU/TASK_SUPERFASTTIMER);SET_BIT(MCCTL,MCZI);//Modulus Counter Underflow Interrupt Enable
in the ISR, I clear the Interrupt Flag
CLR_FLAG(MCFLG, MCZF);
the Problem is that the ISR allways called only one time,
I dont know, if there is a problem with the debuger indart one because, when I try to load the S19 file, I become the warning: Error while writing to 7F4000..7F4200. Information: No memory at this address.
I think it s a problem with my const section:
+seg .const -b 0x7F4000 -o 0x4000 -n .const
the vector address is defined in the lkf file as bellow:
+seg .vector -b 0x7FFF10 -o 0xFF10 # vectors start address in der Firmware
thanks for help