I2C调试

I2C调试:

  包括SCL时钟线,SDA数据线。

I2C调试工具:i2c-tools

ubuntu上安装使用命令 :sudo apt-get install i2c-tools

交叉编译的话需要先下载源码,下载地址如下。然后修改Makefile:

下载地址:

https://mirrors.edge.kernel.org/pub/software/utils/i2c-tools/

11、27、28、29行根据需要进行修改,for example:

在源码根目录下面创建安装目录:mkdir __install

然后在Makefile的 11行前面添加:

PREFIX = ${shell pwd}/__install

CC = arm-linux-gnueabi-gcc

AR = arm-linux-gnueabi-ar

STRIP = arm-linux-gnueabi-strip

原文地址:https://www.cnblogs.com/live-program/p/11217160.html