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.

[参考译文] MSPM0G3519:MCAN0 在停止后从 SW_INIT 切换到正常状态

Guru**** 2536200 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1550884/mspm0g3519-mcan0-never-switches-to-normal-from-sw_init-after-stop

器件型号:MSPM0G3519


工具/软件:

SYSCFG  为 MCAN 生成 SYSCFG_DL_MCAN0_init ()、它在复位后成功完成、但在停止后无法完成。

这是我最新的“唤醒“程序

          DL_SYSCTL_setPowerPolicyRUN0SLEEP0 ();
          DL_MCAN_enableModuleClock (MCAN0_INST);
          DL_MCAN_disableClockStopGateweRequest (MCAN0_INST);
          while (DL_MCAN_isClockStopGatewateRequestEnabled (MCAN0_INST)== true);
          DL_MCAN_addClockStopRequest (MCAN0_INST、FALSE);

          while (DL_MCAN_getClockStop鸣 谢状态 (MCAN0_INST)== true);
          DL_MCAN_disablePower (MCAN0_INST);
          延迟 (200);
          DL_MCAN_RESET (MCAN0_INST);
          延迟 (1000);
          DL_MCAN_enablePower (MCAN0_INST);
          延迟 (500)
          gCheckTimer = false
          SYSCFG_DL_MCAN0_init ();
//从不超过此点。
自动生成的代码具有以下循环:while (DL_MCAN_OPERATION_MODE_NORMAL!= DL_MCAN_getOpMode (MCAN0_INST));
它会一直循环、这意味着模式保持 SW_INIT 不变、永远不会正常运行
已尝试重置/enablePower/disablePower 的所有配置 — 无任何帮助。
请提供建议。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、  

    让我检查一下、稍后再回复您。

    此致、
    彼得

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

    切换到内部晶振解决了该问题。 观察到外部接口没有问题、但 MCAN 在从中计时时存在此类行为。