UART rxchar callback

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
jevan
Posts: 3
Joined: Sun Aug 23, 2015 4:20 pm

UART rxchar callback

Post by jevan »

Hello,
Im having a difficulty on using the rxchar callback.
everytime i transmit a series of byte (20 bytes), i can only receive 2 bytes of the data.
can you help me.

jevan
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: UART rxchar callback

Post by Giovanni »

You should not use that callback for receive large data, use uartStartReceive/uartReceiveTimeout instead.

If you need to receive data one byte at time then the serial driver could be a better choice.

Giovanni
Post Reply