How can I use I2c slave mode?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can I use I2c slave mode?

ソリューションへジャンプ
1,822件の閲覧回数
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,064件の閲覧回数
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,065件の閲覧回数
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,064件の閲覧回数
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,064件の閲覧回数
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,064件の閲覧回数
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 件の賞賛