蓝牙技术
直播中

颜立歆

9年用户 1033经验值
擅长:控制/MCU
私信 关注
[问答]

CYW20719B2接收uart时意外重置了,怎么解决?

  工具:工具箱3.1
样品:HAL_PUART
平台: CYW920719B2Q40EVB-01

你好。
我的项目需要高性能。
所以我在流量控制开启的情况下将 uart 设置更改为 921600。
//设置 RTS,CTS
wiced_hal_puart_select_uart_pads (
#if 1
WICED_P04,//目标
#else
WICED_PUART_RXD,//evboart
#endif
WICED_PUAR T_TXD,WICED_P06/* WICED_PUART_ RTS*/);
//波特率
wiced_hal_puart_configuration ( 921600、PARITY_NONE、STOP_BIT_1 );
始终清除PUART中断
无效puart_rx_interrupt_callback(无效*未使用)
{
/* 硬件 FIFO 中 CAN 最多 16 个字节。
uint8_t读取字节=0;
/* 耗尽 rx 然后发送给 tx。 我们不想等待 tx 然后假设它不会被超限(因为 RTS/CTS)*/
while (wiced_hal_puart_rx_fifo_not_empty () wiced_hal_puart_read (readbyt
{
readbyte += 1;
// this will wait for tx fifo empty before queueing byte
//wiced_hal_puart_synchronous_write(&readbyte,1);
}
e))// #if! & & & PUART_RTS_CTS_FLO
W wiced_hal_puart_reset_puart_interrupt ();//#endi
f
}}
我发送了 10MB 的带有 termterm 的文件(921600,流量控制开启)

我们 CAN 看到 CYW20719 在收到后重置 9 次

我把波特率从 921600 改为 460800。 到目前为止似乎还没有重置。
请让我有解决方案。

更多回帖

发帖
×
20
完善资料,
赚取积分