AnsweredAssumed Answered

Can´t receive more than one byte by UART.

Question asked by AITOR ARANZABAL on Jul 23, 2015
Latest reply on Jul 27, 2015 by AITOR ARANZABAL

Hello all,


I am working with the FRDM-KL25Z and CodeWarrior 10.5. I am trying to send and receive several bytes by the UART, but I am not able to do so.

I am already able to receive one byte, but there is no way to receive more than one byte. Please let me show you what I am doing:


- I am using a terminal called Docklight to send 10 bytes through RS232. I designed a pcb with a 232 tranceciver, so the FRDM-KL25Z UART pins receive the proper voltage leveIs.

- I check by an oscilloscope that these 10 bytes arrive to the FRDM-KL25Z UART pins.

- Both the terminal and the FRDM-KL25Z are configured with 9600 bauds, 8 data bits, 1 stop bit and no parity.

- I use the AsynchroSerial component. Please find attached its settings.


I try to receive the datas by polling, so first I use the method GetCharsInRxBuf() in order to know the number of bytes I receive. And then, I try to charge all these bytes with the method RecvChar into an array. Please find attached the code in a screen capture.

The point is that GetCharsInRxBuf always tells that I receive only 1 byte.


Any clue what I am doing wrong? Thank you in advance.