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.

[参考译文] RTOS:AM57X I2C 传输错误代码

Guru**** 2553450 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/617041/rtos-am57x-i2c-transfer-error-code

工具/软件:TI-RTOS

你好。

适用于 Sitara AM57xx 系列的最新 SDK 中的 I2C_transfer API 函数(版本04.00.00.04)在 No Ack 和仲裁丢失的情况下返回相同的错误代码:在 pdk_am57xx_1_0_7\packages/ti\drv\i2c 中打开 I2C.h 文件您可以读取:

(笑声)

/*!
 *\brief 在  未收到确认时显示 I2C 无应答错误
 *
#define I2C_STS_ERR_NO_ACK          ((int16_t)(-3))
/*!
 *\brief  I2C Arbitration Lost 错误
 *
#define I2C_STS_ERR_arbitration_lost ((int16_t)(-3))
/*!
 *\brief  I2C 总线访问错误

此致、

Scianni Vincenzo

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    RTOS 团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是的、我们认为这是一个需要修复的错误。 我已向开发人员报告了此问题、您应该会在2017年第3季度末的下一个版本中看到修复。 作为临时解决方法、您可以将错误代码 arbitration_lost 更改为-5

    此致、
    Rahul