How can I use I2c slave mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can I use I2c slave mode?

跳至解决方案
1,832 次查看
daisukekitsunai
Contributor I

Hello

I’m developing a custom board based on QSB now.

This board is implemented connector of i2c.

I want to test the connector to connect the boards to each other.

I want to use in slave mode i2c device. So I would like to use the mxc_i2c_slave.

However, Kconfig is adapted to not read the Kconfig of i2c_slave folder.

Is there a way to use in slave mode of the i2c MX53?

标签 (2)
0 项奖励
1 解答
1,074 次查看
jimmychan
NXP TechSupport
NXP TechSupport

There is an example mxc_i2c_slave_test and mxc_i2c_test in the imx-test package in the Linux BSP. You can use this command to extract the source code.

./ltib -p imx-test -m prep

The source code will be extracted to the <ltib>/rpm/BUILD/ folder.

You can take this test code for reference.

在原帖中查看解决方案

0 项奖励
4 回复数
1,075 次查看
jimmychan
NXP TechSupport
NXP TechSupport

There is an example mxc_i2c_slave_test and mxc_i2c_test in the imx-test package in the Linux BSP. You can use this command to extract the source code.

./ltib -p imx-test -m prep

The source code will be extracted to the <ltib>/rpm/BUILD/ folder.

You can take this test code for reference.

0 项奖励
1,074 次查看
daisukekitsunai
Contributor I

I made ​​sure the source code according to your instructions.

I compile and run the source code of these, but the application did not work for / dev/mxc_i2c_slave does not exist.

Is there a way to enable dev/mxc_i2c_slave?

0 项奖励
1,074 次查看
jimmychan
NXP TechSupport
NXP TechSupport

oh, sorry. After look into the i.MX53 QSB BSP driver manual, the I2C driver do not support the I2C slave mode of operation.

0 项奖励
1,074 次查看
daisukekitsunai
Contributor I

So, do you there is no way to use in slave mode in i2c MX53QSB?

Is there a way to improve the mxc_i2c_slave?

0 项奖励