How can I use I2c slave mode?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I use I2c slave mode?

Jump to solution
1,745 Views
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?

Labels (2)
0 Kudos
1 Solution
987 Views
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.

View solution in original post

0 Kudos
4 Replies
988 Views
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 Kudos
987 Views
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 Kudos
987 Views
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 Kudos
987 Views
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 Kudos