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.

[参考译文] TDA2EG-17:I2C2不能用于早期启动

Guru**** 2805425 points

Other Parts Discussed in Thread: TDA2EG-17

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1049762/tda2eg-17-i2c2-can-not-use-in-early-boot

器件型号:TDA2EG-17

您好!

我的定制板是  tda2eg-17、在 Linux 中使用 VSDK 3.7。

我在使用 i2c2时遇到了问题。

我想在 IPU2上使用 i2c2和 i2c3、而不是 A15。

请参阅 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/786733/linux-tda2pxevm-vision_sdk-converting-an-application-from-bios-version-to-linux-version-i2c-issue

我删除  了电路板的./vision_sdk/build/rtos/makerules/build_pdk.mk 中的"VPS_disable_I2C2=yes"和"VPS_disable_I2C3=yes"。

它在 Linux 中工作正常、我可以在 IPU2上使用 i2c2和 i2c3。

但是、当应用于早期引导模式时、它会崩溃:

[11.710845] sh[573]:[host][IPU2 ] 1.23327 s:### XDC 断言-错误回调开始###
[11.740858] sh[573]:[host][IPU2 ] 1.223418 s:
[11.770874] sh[573]:[host][IPU2 ] 1.223540 s:e_hardFault:Forced
[11.800863] sh[573]:[host][IPU2 ] 1.223601 s:
[11.830974] sh[573]:[host][IPU2 ] 1.23632s:### XDC 断言-错误回调结束###
[11.860894] sh[573]:[host][IPU2 ] 1.2363s:
[11.890888] sh[573]:[host][IPU2 ] 1.23906 s:
[11.920880] sh[573]:[host][IPU2 ] 1.23937 s:### XDC 断言-错误回调开始###
[11.950887] sh[573]:[host][IPU2 ] 1.224028 s:
[11.980862] sh[573]:[host][IPU2 ] 1.224120 s:e_busFault:PRECISERR:Immediate Bus Fault,Exact addr Known,address:48060010
[12.021478] sh[573]:[host][IPU2 ] 1.224211 s:
[12.050824] sh[573]:[host][IPU2 ] 1.224272 s:### XDC 断言-错误回调结束###

当我仅使用 i2c3并设置  VPS_DISABLE_I2C2=yes 时、应用程序将会运行、但我无法在 IPU2上使用 i2c2。

在内核 DTS 中、我设置了:

disable_complete (i2c5);
disable_complete (i2c4);
disable_complete (i2c3);
disable_complete (i2c2);

您能在可能出错的地方提供帮助吗?

谢谢你。

Terry

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

    你(们)好

    [引用 userid="46421" URL"~/support/processors-group/processors/f/processors-forum/1049762/tda2eg-17-i2c2-can-not-use-in-early-boot "[11.980862] sh[573]:[host][IPU2 ] 1.224120 s:E_busFault:PRECISERR:Immediate Bus Fault,Exact addr Known,地址:48060010
    [/报价]

    0x48060010是 I2C3寄存器。 这意味着 I2C3在被访问时不启用时钟。

    在早期引导模式下访问 I2C2和 I2C3模块之前、必须确保它们已启用。

    此致、
    斯坦利

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

    您好、Stanley、

    在检查 I2C 的时钟后、它可以正常工作。

    谢谢!

    Terry