Gnichi Mohamed

KL03Z lpuart issue because of rxSize

Discussion created by Gnichi Mohamed on Jun 4, 2016
Latest reply on Jun 6, 2016 by David E Seymour

I am using ksdk 1.3 and kds 3.2.0.

I am using rx callback to send the incoming data on lpuart to the next MCU.

Weirdly, some times the rxcallback function is called but the rxSize is 0 , which means when the program enters inside the IRQ handler, rxSize becomes negative and weird things start to happen.

issue1.PNG

issue.PNG

 

After some receptions the messages emitted are weird and they are not real.

I checked several times that the data received are ok, but after several cycles transmitting stops. These are the data emitted.data.PNG

As u can see at the end chars are repeated and sometimes not and then transmition stops in here.

data2.PNG

Outcomes