串口配置如下,
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.
串口配置如下,
1)自己的硬件板子,用的是6843。
2)UARTA和UARTB硬件上接法一样,因为软件上的配置pinmux将他们都可以绑定到相同的引脚出来。
3)管脚时序看不出,我软件上的配置就是Uart_open时换了一个口,一个是0一个是1,然后UART_read就会有区别,个人感觉应该是驱动层面上的原因。
4)在ti众多的工程中没看到用UARTB的接收实现例子,只有用它的发送接口。
请问:
1)有用过这个UARTB的接收实现参考没?
2)接收处理这块你们能否测试一下,就是Uart_open时把0换为1(uartA换为uartB),然后pinmux时,引脚绑定改到对应串口,然后观察现象如何?
你好,
你是否有修改下面标黄部分代码为UartSci_Duplexity_FULL?
mmwave_sdk_03_05_00_04\packages\ti\drivers\uart\platform\uart_xwr68xx.c
/**
* @brief This is the XWR18xx MSS specific UART configuration. There are
* 2 UART instances available on the MSS. UART1 is tied to SCI-A and UART3 is
* tied to SCI-B. This should *NOT* be modified by the customer.
*/
UartSci_HwCfg gUartSciHwCfg[2] =
{
/* UART1 Hardware configuration:
* - Capable of sending and receiving data
* - PIN MUX is required */
{
((volatile SCIRegs*)SOC_XWR18XX_MSS_SCI_A_BASE_ADDRESS),
UartSci_Duplexity_FULL,
UartSci_PinMux_REQUIRED,
SOC_XWR18XX_MSS_SCIA_LVL0_INT,
SOC_XWR18XX_MSS_SCIA_TX_DMA_REQ,
SOC_XWR18XX_MSS_SCIA_RX_DMA_REQ,
&UartSci_openDMA,
&UartSci_closeDMA,
&UartSci_isDMAEnabled,
&UartSci_initiateRxDMA,
&UartSci_initiateTxDMA
},
/* UART3 Hardware configuration:
* - Capable of only sending data
* - PIN MUX is required */
{
((volatile SCIRegs*)SOC_XWR18XX_MSS_SCI_B_BASE_ADDRESS),
UartSci_Duplexity_TX_ONLY,
UartSci_PinMux_REQUIRED,
SOC_XWR18XX_MSS_SCIB_LVL0_INT,
SOC_XWR18XX_MSS_SCIB_TX_DMA_REQ,
SOC_XWR18XX_MSS_SCIB_RX_DMA_REQ,
&UartSci_openDMA,
&UartSci_closeDMA,
&UartSci_isDMAEnabled,
&UartSci_initiateRxDMA,
&UartSci_initiateTxDMA
}
};