I have migrated from 64 pin to 48 pins. First problem is it was always going to trap because the clock initialization for the peripherals from SDK had no effect. Then i need to do it manually in the main function.
//***** Added Manually ***
// LPTMR0
if(PCC->PCCn[PCC_LPTMR0_INDEX] & 0x40000000){PCC->PCCn[PCC_LPTMR0_INDEX] = 0x80000000;}
PCC->PCCn[PCC_LPTMR0_INDEX] = 0xC2000000; // enable clock, use SIRCDIV2 clock, no clock division
/* Initialize LPTMR */
LPTMR_DRV_Init(INST_LPTMR1, &lpTmr1_config0, false);
INT_SYS_InstallHandler(LPTMR0_IRQn, lptmrISR, (isr_t *)NULL);
INT_SYS_EnableIRQ(LPTMR0_IRQn);
The timer interrupt and pin toggling was working later.
Now i have problem with the LIN and LPUART. The LPUART interrupt is not hitting even after the clock initialization for LPUART1.
/* Configure Clock for LPUART1 */
PCC->PCCn[PCC_LPUART1_INDEX] &= ~PCC_PCCn_CGC_MASK; /* CGC=0: Clock disabled to modify PCS */
PCC->PCCn[PCC_LPUART1_INDEX] &= ~PCC_PCCn_PCS_MASK; /* Clear PCS field temporarily */
PCC->PCCn[PCC_LPUART1_INDEX] = 0xC3000000;
I have tried both LIN slave and LIN slave baremetal from SDK.
Is the SDK for 48 pin package is complete?
or Still any update can be expected?