Hi,
I'm struggling with the INTCinterrupt handler. I did create a bootloader and scheduled a function to be called every 1ms using
INTC_InstallINTCInterruptHandler(PIT_ISR0, (uint8_t) (PIT_INTERRUPT_VECTOR_CH0), (uint8_t) priority);void PIT_ISR0() {dummy();PIT_0.TIMER[0].TFLG.R = 1;}
Solved! Go to Solution.
Hi,
the most important thing is to disable all interrupts on all levels before jump to an application: by MSR[EE] bit, by local enable bits in peripherals, by priorities in INTC. This is usually the reason for most of the troubles. It's also good idea to de-initialize all used peripherals to default reset state.
Regards,
Lukas
Hi,
the most important thing is to disable all interrupts on all levels before jump to an application: by MSR[EE] bit, by local enable bits in peripherals, by priorities in INTC. This is usually the reason for most of the troubles. It's also good idea to de-initialize all used peripherals to default reset state.
Regards,
Lukas