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.

TMS320F280049C: 消息发送 接受问题

Part Number: TMS320F280049C


使用例程can_ex3_external_transmit 时 其他寄存器都正常 但CAN_ES Register的TxOk位一直为零 消息发不出去 也连不上can分析仪 这是什么原因 

  • 你好,这个例程的运行有外部连接的硬件要求,在main.c开头的注释中有说明:

    //! \b Hardware \b Required \n
    //!  - A C2000 board with two CAN transceivers
    //!
    //! \b External \b Connections \n
    //!  - ControlCARD CANA is on GPIO31 (CANTXA) and GPIO30 (CANRXA)
    //!  - ControlCARD CANB is on GPIO8 (CANTXB) and GPIO10 (CANRXB)
    //!  - Launchpad CANA is on GPIO32 (CANTXA) and GPIO33 (CANRXA)
    //!  - Launchpad CANB is on GPIO8 (CANTXB) and GPIO10 (CANRXB)

    你的硬件上是否有按照说明连接?

  • 我是将例程稍加修改 不再是cana发给canb 而是cana自己对外的收发 板子是自己做的 发送引脚是gpio4 输出引脚是gpio18  不知道问题出在哪里 

  • TxOk为0就是代表没有消息发送出去。

    如果是自己制作的板子,不知道你的CAN外部电路都设计好了吗?比如CAN收发器是否有配备。如果有配备完毕,建议先用回环程序测试一下电路是否能运行,引脚是否有信号等等。这样的话外部的其他问题会少一些