Hi Daniel
I follow your idea to test my mcu.when the mcu was awakened,I deliberately delayed 5ms and 2s to send the data.I find when I send the first and second frame, the mcu was no response until the third frame.I test many times. The result is the same.Can you help me examine my follow program. I guess I read the SCIxSR1 and SCIxASR1 value,that mean I have cleared the SCI flag. Delay 5ms and 2s,I think clock of the mcu shuld have reseted successfully.
void lin_hal_ISR(void)
{
l_u8 sci_reg_sr1;
l_u8 sci_reg_asr1;
sci_reg_sr1 = LIN_SCI_REG->SCIxSR1; /*lint !e923*/ /* HW register access */
sci_reg_asr1 = LIN_SCI_REG->SCIxASR1; /*lint !e923*/ /* HW register access */
lin_hal_rx_data_guc = LIN_SCI_REG->SCIxDRL; /*lint !e923*/ /* HW register access */
//LIN_SCI_REG->SCIxASR1&=0xFF;
//LIN_SCI_REG->SCIxSR1=0xFF;
}