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?
已解决! 转到解答。
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
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
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