The same code, the LIN physical layer can work during debugging, but the LIN physical layer cannot work during program download and execution.
PIM set:
void pim_init(void)
{
MODRR0_SCI1RR = 1; // SCI - FreeMASTER
DDRS_DDRS4 = 1; // Debugg Signal
DDRS_DDRS5 = 1; // Debugg Signal
//DDRT_DDRT0 = 1; // Debugg Signal
DDRT_DDRT1 = 0; // Input switch signal
MODRR0_S0L0RR = 0x01; //LIN routed to RX
MODRR2_T0IC3RR = 0x01; //RX routed to TIM0C3
}
LIN sends Datas:
LIN sends using register LP0DR_LPDR1

