"Chip_UART_ReadRB" only receiving half data

cancel
Showing results for 
Search instead for 
Did you mean: 

"Chip_UART_ReadRB" only receiving half data

789 Views
sagarpatil
Contributor II

Hi all,

I have to receive 32 bytes form one of the sensor but i am only able to receive 16 bytes

code snippet:-

uint8_t data[32]={0};

while(!Chip_UART_ReadRB(LPC_UART2,&rxring_2,data,32)); --->only 16 bytes read

even if i use below function:-.

while(!Chip_UART_Read(LPC_UART2,&rxring_2,data,32)); ---->only 16 bytes read

but if i use

while(!Chip_UART_ReadBlocking(LPC_UART2,data,64));  --->read bytes 32 bytes

any known error please let me know it will be helpful

0 Kudos
2 Replies

348 Views
sagarpatil
Contributor II

Hi carlosmendoza‌ ,

I am using LPC43s67(om13084).

Baudrate- 921600

Thanks,

sagar

0 Kudos

348 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Sagar,

Could you tell us which MCU are you using?

Thanks in advance!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos