KL03Z lpuart issue because of rxSize

cancel
Showing results for 
Search instead for 
Did you mean: 

KL03Z lpuart issue because of rxSize

263 Views
gnichimohamed
Contributor III

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.

152971_152971.PNGissue1.PNG

152978_152978.PNGissue.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.152979_152979.PNGdata.PNG

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

152980_152980.PNGdata2.PNG

Labels (1)
0 Kudos
1 Reply

127 Views
DavidS
NXP Employee
NXP Employee

Hi Gnichi,

Can you post your project?

Regards,

David

0 Kudos