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.

[参考译文] AM263P4-Q1:未初始化 MCAN 模块时 SDK API 的行为

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602810/am263p4-q1-the-behavior-of-sdk-apis-when-the-mcan-module-is-not-initialized

器件型号: AM263P4-Q1

如果在期间MCAN_init()或 MCAN 模块保持未初始化状态或保持在初始化模式期间发生错误、调用以下 API 时会出现什么行为?

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

    你好、Imaoka、

    如果 MCAN 模块未初始化或未正确初始化、则外设的状态机可能不准确、这将导致各种不可确定的功能。

     如果没有应用正确的初始化,我们将无法确定或保证这些 API 的任何特定操作行为。

    我将分享以下来自 BISCR MCAN 用户指南文档的摘录、该文档指定随着 CCCR.CCE/INIT 切换而复位哪些寄存器。

    这应该就 API 操作提供一些指导、知道这些寄存器将被清零和无效。

    此致、

    Zackary Fleenor