Kinetis SDK 2.0.I2C library.

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

Kinetis SDK 2.0.I2C library.

Jump to solution
637 Views
jun1
Contributor V

Please kindly advise.
I am using the I2C library of Kinetis SDK 2.0.
One byte of data was transmitted from the host to the General Call Address by setting the slave to General Call Address Enable.
Incoming callbacks are called, but the data is not as expected. Probably, I think that I did not specify the read buffer. Which API do you do?

0 Kudos
1 Solution
508 Views
jun1
Contributor V

thank Jing .
I referred to here.
http://mcuxpresso.nxp.com/apidoc/group__i2c__driver.html
· Slave Operation in interrupt transactional method
I did not know the timing of specifying the receive buffer, but when I looked at the sample code carefully, I specified it with kI2C_SlaveReceiveEvent.
solved. Thank you very much.

jun

View solution in original post

0 Kudos
2 Replies
508 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi jun,

Have you tried the I2C demos in SDK package? I don't know what MCU do you use. For example, if you use k22, in boards\frdmk22f\driver_examples\i2c there are many I2C demos. I think they can give you many help.

Regards,

Jing

0 Kudos
509 Views
jun1
Contributor V

thank Jing .
I referred to here.
http://mcuxpresso.nxp.com/apidoc/group__i2c__driver.html
· Slave Operation in interrupt transactional method
I did not know the timing of specifying the receive buffer, but when I looked at the sample code carefully, I specified it with kI2C_SlaveReceiveEvent.
solved. Thank you very much.

jun

0 Kudos