kw47 lpuart

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

kw47 lpuart

435 次查看
wjw2026
Contributor II

Hi:

Modify and verify the serial communication based on the official routine kw47loc_wireless_uart_freertos. Only modify Uart_RxCallBack and baud rate. The modifications are as follows: 

wjw2026_0-1782379752847.pngwjw2026_0-1782379752847.png

For the convenience of testing at present, 20 bytes are sent each time through the serial port. The test found that when the baud rate is lower than 256000, there are no problems with both receiving and sending. When the baud rate is set to 460800 or higher, the kw47 sends normally, but packet loss occurs during reception. 

Could you please check if I'm using it improperly and give me some guidance? 

Also, why is there no kw47loc_freertos_lpuart_cm33_core0 routine in sdk_26_03_00? 

Thank you! 

 

0 项奖励
回复
1 回复

192 次查看
sofiaurueta
NXP Employee
NXP Employee

Hello,
hope you are doing well.

 

Could you clarify what behavior/functionality you are trying to validate? Are you evaluating the maximum supported UART baud rate or implementing an application that echoes received data?

From your modified Uart_RxCallBack function, have you tested whether the packet loss still occurs if SerialManager_WriteBlocking() and Serial_Print() are removed from the callback (or handle the transmit operation elsewhere in the application context rather than directly inside the callback) and only the received byte count is recorded? 

This could help determine whether the packet loss is related to the UART/LPUART itself or to the additional processing added in the callback. At higher baud rates, operations such as blocking writes and debug prints may delay the receive path and contribute to data loss.

 

Also, you mention kw47loc_freertos_lpuart_cm33_core0, are you referring to an example project that was available in a previous SDK release? If so, which SDK version contains the example you are comparing against?

 

Best regards,
Sofia.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2386328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ekw47%20lpuart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%A0%B9%E6%8D%AE%E5%AE%98%E6%96%B9%E4%BE%8B%E7%A8%8B%20kw47loc_wireless_uart_freertos%20%E4%BF%AE%E6%94%B9%E5%B9%B6%E9%AA%8C%E8%AF%81%E4%B8%B2%E8%A1%8C%E9%80%9A%E4%BF%A1%E3%80%82%E4%BB%85%E4%BF%AE%E6%94%B9%20Uart_RxCallBack%20%E5%92%8C%E6%B3%A2%E7%89%B9%E7%8E%87%E3%80%82%E4%BF%AE%E6%94%B9%E5%86%85%E5%AE%B9%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22wjw2026_0-1782379752847.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22wjw2026_0-1782379752847.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F390144i60E8A5BE4D3DFCCB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22wjw2026_0-1782379752847.png%22%20alt%3D%22wjw2026_0-1782379752847.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ewjw2026_0-1782379752847.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%B8%BA%E4%BA%86%E6%96%B9%E4%BE%BF%E6%B5%8B%E8%AF%95%EF%BC%8C%E7%9B%AE%E5%89%8D%E6%AF%8F%E6%AC%A1%E9%80%9A%E8%BF%87%E4%B8%B2%E5%8F%A3%E5%8F%91%E9%80%81%2020%20%E5%AD%97%E8%8A%82%E3%80%82%E6%B5%8B%E8%AF%95%E5%8F%91%E7%8E%B0%EF%BC%8C%E5%BD%93%E6%B3%A2%E7%89%B9%E7%8E%87%E4%BD%8E%E4%BA%8E%20256000%20%E6%97%B6%EF%BC%8C%E6%8E%A5%E6%94%B6%E5%92%8C%E5%8F%91%E9%80%81%E5%9D%87%E6%97%A0%E9%97%AE%E9%A2%98%E3%80%82%E5%BD%93%E6%B3%A2%E7%89%B9%E7%8E%87%E8%AE%BE%E7%BD%AE%E4%B8%BA%20460800%20%E6%88%96%E6%9B%B4%E9%AB%98%E6%97%B6%EF%BC%8Ckw47%20%E5%8F%91%E9%80%81%E6%AD%A3%E5%B8%B8%EF%BC%8C%E4%BD%86%E5%9C%A8%E6%8E%A5%E6%94%B6%E8%BF%87%E7%A8%8B%E4%B8%AD%E4%BC%9A%E5%8F%91%E7%94%9F%E4%B8%A2%E5%8C%85%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3E%E8%AF%B7%E9%97%AE%E6%82%A8%E8%83%BD%E5%90%A6%E5%B8%AE%E6%88%91%E6%A3%80%E6%9F%A5%E4%B8%80%E4%B8%8B%E6%88%91%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95%E6%98%AF%E5%90%A6%E6%AD%A3%E7%A1%AE%EF%BC%8C%E5%B9%B6%E7%BB%99%E6%88%91%E4%B8%80%E4%BA%9B%E6%8C%87%E5%AF%BC%EF%BC%9F%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3E%E5%8F%A6%E5%A4%96%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%20sdk_26_03_00%20%E4%B8%AD%E6%B2%A1%E6%9C%89%20kw47loc_freertos_lpuart_cm33_core0%20%E4%BE%8B%E7%A8%8B%EF%BC%9F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E