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.

[参考译文] AM625:使用 PROCESSOR-SDK-LINUX AM62X-AM62X 11.00.09.04 时、无法使 MCU_mcan0 和 MCU_mcan1 启动并运行

Guru**** 2419530 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1535821/am625-can-not-get-mcu_mcan0-and-mcu_mcan1-up-and-running-using-processor-sdk-linux-am62x-11-00-09-04

器件型号:AM625

工具/软件:

您好 TI、

我正在设置mcu_mcan0mcu_mcan1使用最新的 SDK 版本 11.00.09.04. 。 到目前为止main_mcan0、可以正确地进行初始化和操作。 此设置之前可以正常运行、在 SDK 上不会出现问题 09.01.00.08

但是、使用新的 SDK 时、问题似乎与有关 电源域 。 我已经将问题追溯到函数ti_sci_cmd_get_device_exclusive(),它返回 –19 对于mcu_mcan、但是 0 对于。 main_mcan

这表明 时钟和/或电源域 mcu_mcan可能未启用或正确配置。

问题
mcu_mcanSDK 11.00.09.04 的设置中可能缺少哪些内容?
在该 SDK 版本中是否需要执行额外的步骤来启用其电源或时钟域?

带有一些自己的打印输出的 DMSG 日志

[    0.278419] m_can 4e18000.can: adding to PM domain pd:189
[    0.278424] m_can 4e18000.can: genpd_add_device()
[    0.278432] PM: genpd_power_on start
[    0.278434] PM: _genpd_power_on timed 0
[    0.278437] ti_sci_pd_power_on 189 1
[    0.278478] ti-sci 44043000.system-controller: MSGHDR:type=0x0200 host=0x0c seq=0x00 flags=0x00000000
[    0.278493] ti-sci 44043000.system-controller: ti_sci_set_device_state -19
[    0.278498] PM: _genpd_power_on err -19
[    0.278502] m_can 4e18000.can: genpd_power_on -19
[    0.278506] m_can 4e18000.can: genpd_remove_device()
[    0.278511] genpd_dev_pm_attach fffffdfb
[    0.278514] platform_probe dev_pm_domain_attach -517
[    0.278677] platform_probe start
[    0.278685] m_can 20701000.can: adding to PM domain pd:98
[    0.278690] m_can 20701000.can: genpd_add_device()
[    0.278697] PM: genpd_power_on start
[    0.278699] PM: _genpd_power_on timed 0
[    0.278701] ti_sci_pd_power_on 98 1
[    0.278762] ti-sci 44043000.system-controller: MSGHDR:type=0x0200 host=0x0c seq=0x00 flags=0x00000002
[    0.278779] ti-sci 44043000.system-controller: ti_sci_set_device_state 0
[    0.278785] m_can 20701000.can: genpd_power_on 0
[    0.278790] genpd_dev_pm_attach 1

此致

Magnus