We never clear LTXOK when we finish transmission of the ring buffer. This means that on the next pass, when new data needs transmission, enabling the Transmit Performed Interrupt fires the interrupt handler immediately, which then proceeds to load data from pointers that are stale as they haven't been set to the correct index.
Don't enable Transmit Performed Interrupt prior to setting the correct tail index and prior to loading data in LINDAT reg
We never clear LTXOK when we finish transmission of the ring buffer. This means that on the next pass, when new data needs transmission, enabling the Transmit Performed Interrupt fires the interrupt handler immediately, which then proceeds to load data from pointers that are stale as they haven't been set to the correct index.
Don't enable Transmit Performed Interrupt prior to setting the correct tail index and prior to loading data in LINDAT reg