"Chip_UART_ReadRB" only receiving half data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

"Chip_UART_ReadRB" only receiving half data

1,405 次查看
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 项奖励
回复
2 回复数

964 次查看
sagarpatil
Contributor II

Hi carlosmendoza‌ ,

I am using LPC43s67(om13084).

Baudrate- 921600

Thanks,

sagar

0 项奖励
回复

964 次查看
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 项奖励
回复