"Chip_UART_ReadRB" only receiving half data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

"Chip_UART_ReadRB" only receiving half data

1,339件の閲覧回数
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 返答(返信)

898件の閲覧回数
sagarpatil
Contributor II

Hi carlosmendoza‌ ,

I am using LPC43s67(om13084).

Baudrate- 921600

Thanks,

sagar

0 件の賞賛
返信

898件の閲覧回数
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 件の賞賛
返信