This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F 串口波特率 1000000 bsp,设置 2M PHY 时串口会出现 Uart Error over run。

Other Parts Discussed in Thread: CC2640R2F

CPU:CC2640R2F

SDK:simplelink_cc2640r2_sdk_4_10_00_10

问题描述:

1、设置串口波特率为 1000000 bsp。

2、将 PHY 设置为 2M。

3、整个程序操作过程是:STM32 通过串口发送 256 个字节的透传命令给 CC2640R2F,CC2640R2F 收到后调用 GATT_Notification() 发送 244 个字节数据给连接的蓝牙设备。当 GATT_Notification() 函数返回 SUCCESS 时,CC2640R2F 则通过串口返回发送成功命令给 STM32,STM32 收到后再发送透传命令给 CC2640R2F。

4、当发送 PHY 为 1M 时,如此发送透传数据不会出现任何问题,当 PHY 设置为 2M 时,串口会出现 Uart Error over run 错误,我已经将 uint8_t uartCC26XXRingBuffer[CC2640R2_LAUNCHXL_UARTCOUNT][600];,查看了串口缓存也是没有满的,但是会莫名出现 Uart Error over run 错误。下面是串口缓存的 ringBuffer。

请问这可能是什么问题?