AnsweredAssumed Answered

KE02 and KL02 micro to micro UART communication issues

Question asked by umsankar kalluru on May 28, 2015
Latest reply on Jun 4, 2015 by isaacavila

I am using MKE02Z64VLD2 and MKL02Z32VFM4 micros on the same board, and they are communicating using UART null modem (Just Tx and Rx are connected).

I am transmitting 6 bytes of data from KL02 to KE02, The below is array of data i am sending for different 18 events which will occur on KL02


{0x00, 0x01, 0x00, 0x01, 0x00, 0x01},
{0x00, 0x02, 0x00, 0x02, 0x00, 0x02},
{0x01, 0x00, 0x01, 0x00, 0x01, 0x00},
{0x02, 0x00, 0x02, 0x00, 0x02, 0x00},
{0x01, 0x04, 0x01, 0x00, 0x01, 0x00},
{0x01, 0x04, 0x00, 0x01, 0x00, 0x01},
{0x01, 0x04, 0x01, 0x02, 0x03, 0x04},
{0x01, 0x04, 0x01, 0x02, 0x00, 0x00},
{0x01, 0x04, 0x00, 0x00, 0x02, 0x01},
{0x01, 0x04, 0x00, 0x00, 0x00, 0x01},
{0x01, 0x04, 0x02, 0x00, 0x00, 0x00},
{0x01, 0x04, 0x00, 0x02, 0x00, 0x00},
{0x01, 0x04, 0x00, 0x00, 0x02, 0x00},
{0x01, 0x04, 0x00, 0x00, 0x00, 0x02},
{0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
{0x00, 0x00, 0x00, 0x00, 0x02, 0x00},
{0x00, 0x00, 0x00, 0x03, 0x00, 0x00},
{0x00, 0x04, 0x00, 0x00, 0x00, 0x00}


The issue I am facing here is , whenever the data contains two or more 0x00 in the packet the KE02 micro does not receive 6 bytes instead it received 5 bytes and even the received 5 bytes are not correct, I might receive 0x00, 0xC0, 0x00, 0x0E, 0x01. Which were not expected.


I am using interrupt service to send and receive bytes on both micros.


Anyone has faced such issue earlier, please help me.