IWR6843 串口问题

Other Parts Discussed in Thread: IWR6843

您好!

           现在想控制串口进行与外部设备进行通信,看到官方例程中所给的程序(如下图所示)想知道uart_OPEN 打开的串口号是多少,是哪个管脚控制。UART_config table 可以在哪里找到?

          对于我现在计划通过串口N4和N5 进行串口协议通讯是否可行。

才拿到板子不熟悉外加新手,望指导,谢谢!

  • 请查看以下文件 mmwave\mmwave_sdk\packages\ti\drivers\uart\platform\uart_xwr68xx.c

    /**
    * @brief The MSS on the XWR68xx Platform has 2 UART Modules which can be used.
    * UART1 which uses the SCI-A and UART3 which uses SCI-B. Application
    * developers can modify the configuration definition below as per their
    * requirements.
    */
    UART_Config UART_config[] =
    {
    {
    &gUartSciFxnTable, /* UART SCI Driver Function Table: */
    (void *)NULL, /* UART Driver Object: */
    (void *)&gUartSciHwCfg[0] /* UART Hw configuration: */
    },
    {
    &gUartSciFxnTable, /* UART SCI Driver Function Table: */
    (void *)NULL, /* UART Driver Object: */
    (void *)&gUartSciHwCfg[1] /* UART Hw configuration: */
    },
    {
    NULL, /* UART SCI Driver Function Table: */
    NULL, /* UART Driver Object: */
    NULL /* UART Hw configuration: */
    }
    };
  • 您好:

      我已经查看以上资料,但我还是有些不懂,uart 1 对应的就是uart_open(0 ~ ~   )吗?我如何才能使用XDS的串口调试功能,配合串口调试助手打印出串口的值?

      谢谢!

  • 你好,

    请参考下面的代码,可以了解在mss侧uart_open 0是UART1, uart_open 1是uart 3。

    C:\ti\mmwave_sdk_03_04_00_03\packages\ti\drivers\uart\platform\uart_xwr68xx.c

    #ifdef SUBSYS_MSS

    /**
    * @brief This is the XWR68xx 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_XWR68XX_MSS_SCI_A_BASE_ADDRESS),
    UartSci_Duplexity_FULL,
    UartSci_PinMux_REQUIRED,
    SOC_XWR68XX_MSS_SCIA_LVL0_INT,
    SOC_XWR68XX_MSS_SCIA_TX_DMA_REQ,
    SOC_XWR68XX_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_XWR68XX_MSS_SCI_B_BASE_ADDRESS),
    UartSci_Duplexity_TX_ONLY,
    UartSci_PinMux_REQUIRED,
    SOC_XWR68XX_MSS_SCIB_LVL0_INT,
    SOC_XWR68XX_MSS_SCIB_TX_DMA_REQ,
    SOC_XWR68XX_MSS_SCIB_RX_DMA_REQ,
    &UartSci_openDMA,
    &UartSci_closeDMA,
    &UartSci_isDMAEnabled,
    &UartSci_initiateRxDMA,
    &UartSci_initiateTxDMA
    }
    };
  • 你好:

     如下图的串口调试模块只是用于mmWave_Demo_Visualizer连接调试和程序下载口吗?

  • 你好,

    可以作为普通uart使用,具体功能请参考TRM里的相关章节。
  • 您好!
    能具体说一下,是参照哪个文档吗?
    谢谢
  • 你好,

    IWR14xx/16xx/18xx/68xx/64xx Industrial Radar Family Technical Reference Manual (Rev. E)
    www.ti.com/.../swru522e.pdf
    Chapter 26 Serial Communication Interface (SCI)
  • HI chris

    有几个问题请教:
    1. iwr6843 内部有几个uart 口,看TRM 应该是2个?
    2. dss 的uart 如何用?dss上用的uart 是跟mss的uart复用的吗?
    3. 在pc端就接一个usb 口,内部是如何打开2个uart口的,会冲突不