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.

[参考译文] CC2642R:无法启用2通道 Uart2

Guru**** 1955920 points
Other Parts Discussed in Thread: SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1216421/cc2642r-cannot-enable-2-channel-uart2

器件型号:CC2642R
"Thread:SysConfig"中讨论的其他器件

尊敬的工程师:

SDK 版本:6.40

设置:CC2642 LP

我使用 SysConfig 并启用2通道  uart2、thenI 使用  UART2_open (CONFIG_UART2_0)、UART2_open (config _UART2_1)。

但当我使用 UART2_WRITE () 作为  UART_OPEN 的句柄时、只有 CONFIG_UART2_1 正常工作、没有 CONFIG_UART2_0的数据。 当我单独启用其中一个时、我确认了它们都可以正常工作。

如果我在这里做错了什么、您能帮助我理解吗?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Simon、

    以下是 uart2callback 的修改版本 、我验证该版本能够在两个 UART 外设上进行通信。  SysConfig 中的唯一更改是添加第二个 UART 模块。

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /*
    * Copyright (c) 2020, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    此致、
    Ryan

x 出现错误。请重试或与管理员联系。