Hi,
We are trying to configure S32K144 as a slave configuration.
1. LPUART2 is configured for a Baud rate of 19200 Kb/s.
2. In LPUART2 Tx and Rx is tested via transmitting a dummy data for configuration test and its working fine.
3. LPUART2->BAUD = 0x0F000062;
LPUART2->CTRL = 0x000C0000;
LPUART2->STAT = 0x02000000;
this is value we set for the registers
4. Interrupt enable
/* Set the priority level */
NVIC_SetPriority ((IRQn_Type)35u, 0x1U);
/* Enable interrupt for UART1/LIN to set Flags*/
NVIC_EnableIRQ((IRQn_Type)35u);
5. Using Muxtrace we are sending a header to S32K144 and we are testing for STAT[LBKDIF] and eventhough header is received in the Rx pin not able to detect the LIN BREAK. Due to this STAT[LBKDIF] flag is not setting when header is available.
kindly help in this one
Hi, Petrs
Thank you for the example code. The same code we are trying to use for S32k144 board and we are facing some issues.
1. It never enters to the interrupt handling function.
Hi,
do you have LBKDIE set as well in your code?
BR, Petr
Hi PetrS,
Thank you for the example code. we need some clarification
1. In debug mode after reading the Sync byte i cant able to read the other data since its lost
2. During debug session the sync byte was read correctly occasionaly most of the time it reads the wrong data
3. During debug session for me overrun flag is setting always kindly clarify these points
Hi,
debugging could be little bit hard if you stop the code and frame is going to be received or already receiving. As there is RXFIFO disabled usually some bytes can be easily lost and overflow can be detected. But even with RXFIFO enabled, above can happen too.
BR, Petr
Hi,
could below example help on this?
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K116-LPUART-LIN-Slave-TXRX-ISR-S32DS-ARM...
BR, Petr