Hi team,
Here's an issue from the customer may need your help:
When the LIN module is configured in SCI multi-level buffer mode, the user can set the length of the receive byte (1~8byte). As per the manual, the receive must reach the set 8Byte for the length of 8byte to signal receive complete. Customer have the following questions about this:
1) The customer triggers the read by receiving the completion flag in the main loop and is prepared to use the multiple buffer mode to prevent data that is not read in time from being overwritten. However, the buffer is full before the receive is sent, so that the customer must read the next data before it is available, which still requires much time.
2) The length of the setup instruction that the customer needs to process is not fixed, for example, it may be 13Byte, after the first 8 byte have been received, the last 5 byte are always dissatisfied. Then the receive complete flag is not issued causing cannot work properly.
3) The length of the buffer is set to 8. According to the manual, the user does not know where to read the receive counter value, that is, the user does not know how many data is stored in the buffer until the reception is full.
The SCI module of the chip has been used, only SCI mode can be used using LIN configuration.
Could you help check if the above understandings are correct? Thanks.
Best Regards,
Cherry