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.

[参考译文] MSPM0C1104:MSPM0C1104

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1353920/mspm0c1104-mspm0c1104

器件型号:MSPM0C1104
主题中讨论的其他器件:BQ76952

尊敬的先生/女士

我想计算4字节 BQ76952 IC 4字节的 CRC 函数。 我从事 i2c 通信。 这也在示例代码中,但在示例代码中没有给出 CRC 的计算。 请帮我。

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

    您好、 

    尚未向演示代码添加 CRC 函数。

    但演示代码中已经有 CRC 校验 API 了。

    Fullscreen
    1
    2
    Checksum(unsigned char *ptr, unsigned char len)
    CRC8(unsigned char *ptr, unsigned char len)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    您能否尝试自行添加此函数。

    您需要执行的另一个步骤是通过 I2C 启用 BQ 的 CRC。

    请参阅 BQ 的数据表: https://www.ti.com/lit/ds/symlink/bq76952.pdf

    此函数将在接下来的几个月内添加到 SDK 中。

    如果在添加 CRC 功能时遇到任何问题、请与我联系。

    此致、

    赫利克