I tried to set it in this way
LPSPI0-> IER = 0x200; //set TCIE to 1
INT_SYS_InstallHandler(LPSPI0_IRQn, &LPSP0_ISR, (isr_t*) 0); // handler for ISR routine function
void LPSP0_ISR (void)
{
PINS_DRV_SetPins(PTB, 1<<0U);
PINS_DRV_ClearPins(PTB, 1<<0U);
LPSPI0-> IER |= LPSPI_IER_TCIE_MASK ; //delete flag
}
It working partly, unfortunately than program always stop in LPSP0_ISR function in debugging mode. Please do you have idea what is wrong?