Kinetis SDK 2.0.I2C library.

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

Kinetis SDK 2.0.I2C library.

跳至解决方案
640 次查看
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 项奖励
1 解答
511 次查看
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 项奖励
2 回复数
511 次查看
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 项奖励
512 次查看
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 项奖励