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.

[参考译文] TMDXLCDK138:AIC31寄存器通过 I2C0进行读取访问不能在轮询模式下工作

Guru**** 2550290 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/604325/tmdxlcdk138-aic31-registers-read-access-thru-i2c0-doesn-t-work-in-polling-mode

器件型号:TMDXLCDK138

您好!

我尝试使用 DSP 应用中的 AIC31编解码器、方法是使用 PDK 中的示例源代码(pdk_omapL138_1_01_00_02\packages/ti\drv\mcasp\examples\omappl138-lcdk\Audio\)。

我找到了一个用于在低级(codec_if.h/.c)访问 audiocodec 的 API。 就我不必读取 AIC31的寄存器值而言、一切都很好:音频会回放并录制。

但是如果我尝试使用 CodecRegRad(),它只是不读取任何内容,返回寄存器地址。

在 Starterware 套件(OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\McASP\)的 McASP 示例中、所有内容都能正常工作、包括读取和写入。 但据我所知、Starterware 示例使用不同的方法处理基于中断的 I2C、而 PDK 示例使用轮询。

这是已知的错误、还是我的代码/硬件设置中可能存在一些问题?

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

    我已通知 RTOS 团队。 他们的反馈将在此处发布。

    此致、
    Yordan