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.

[参考译文] TMS320F28384D:在 C2000示例中可以发送不起作用。(在 C28x 中使用 CAN_EX5_Transmit _Receive 示例)

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1138136/tms320f28384d-can-transmit-not-working-in-c2000-example-using-can_ex5_transmit_receive-example-in-c28x

器件型号:TMS320F28384D

尊敬的团队:

我正在控制器中运行上述程序。接收操作正常工作、当我尝试将其用作发送时、其错误标志为1、传输未发生。

CAN_Get 状态值 为0x00000063。我已附加代码和表达式映像。请就此提供帮助。! 有时可变 ISR 变为负。

提前感谢!

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//#############################################################################
//
// FILE: can_ex5_transmit_receive.c
//
// TITLE: CAN Configuration for Transmit and Receive.
//
//! \addtogroup driver_example_list
//! <h1> CAN Transmit and Receive Configurations </h1>
//!
//! This example shows the basic setup of CAN in order to transmit or receive
//! messages on the CAN bus with a specific Message ID. The CAN Controller is
//! configured according to the selection of the define.
//!
//! When the TRANSMIT define is selected, the CAN Controller acts as a
//! Transmitter and sends data to the second CAN Controller connected
//! externally.If TRANMSIT is not defined the CAN Controller acts as a Receiver
//! and waits for message to be transmitted by the External CAN Controller.
//! Please refer to the appnote Programming Examples and Debug Strategies
//! for the DCAN Module (www.ti.com/lit/SPRACE5) for useful information
//! about this example
//!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Rahul、

    [引用 userid="526493" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1138136/tms320f28384d-can-transmit-not-working-in-c2000-example-using-can_ex5_transmit_receive-example-in-c28x ]CAN_GET 状态值为 0x00000063

    这意味着存在 ACK 错误、这意味着发送的消息不会被另一个节点应答。 请检查用于通信的其他 CAN 节点。 您可以使用另一个微控制器或使用 CAN 总线分析器工具来更好地进行调试。 另请查看以下 应用手册 以了解一些调试策略。

    谢谢。

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

    是的、你是对的。现在运转正常...谢谢!