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.

[参考译文] MCU-PLUS-SDK-AM273X:MCAN ISR 不能正常工作

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1119898/mcu-plus-sdk-am273x-mcan-isr-doesn-t-work

器件型号:MCU-PLUS-SDK-AM273X

您好!

关于 MCAN、我尝试将 MCAN 驱动程序移植到 MMW 演示。 (参考源代码:MCU_PLUS_SDK_am273x_08_02_00_26\examples\drivers\mcan)

当 MCAN 发送正在运行时、它始终挂起到"SemaphoreP_pend (&gMcanTxDoneSem、SystemP_WAIT_FOREV期限);"以等待 Tx 完成。

我认为 MCAN ISR 可能不起作用。

还有其他需要检查的地方吗?

谢谢。

mcuplus SDK 版本:04_02_00_03

相关配置:

===========================

void App_mcanInit (void)
  内部32_t         状态= SystemP_Success;
  Hwip_Params       hwiPrms;

  /*构造 Tx/Rx 信标对象*/
  状态= SemaphoreP_constructBinary (&gMcanTxDoneSem0);
  DebugP_assert (SystemP_Success == status);
  状态= SemaphoreP_constructBinary (&gMcanRxDoneSem0);
  DebugP_assert (SystemP_Success == status);

  /*寄存器中断*/
  Hwip_Params_init (&hwiPrms);
  hwiPrms.intNum   = APP_MCAN_INTR_NUM;
  hwiPrms.callback  =&App_mcanIntrISR;
  状态        = Hwip_construct(&gMcanHwiObject,&hwiPrms);
  DebugP_assert (status =SystemP_Success);

  /*分配 MCAN 实例地址*/
  gMcanBaseAddr =(uint32_t) AddrTranslateP_getLocalAddr (APP_MCAN_BASE_ADDR);

  /*配置 MCAN 模块*/
  app_mcanConfig()

  /*启用中断*/
  app_mcanEnableIntr ();
===========================