s32k144 flexio_i2c read error

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

s32k144 flexio_i2c read error

1,070 次查看
zhanglei2015xx
Contributor II

Dear ,

   i use flexio_i2c_s32k144 demo code to test.

  but find the read value is not matched with I2C wave.

  What may be the reason? Thanks微信图片_20190622065003.jpg

微信图片_20190622065009.jpg

标签 (1)
标记 (2)
0 项奖励
5 回复数

916 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello.

Is the master reading only one byte or more?

What is the status returned by the receive function?

Could you please share the project?

If you don't want to post it here, you may create a ticket.

How to submit a new question for NXP Support 

Thanks,

BR, Daniel 

0 项奖励

916 次查看
zhanglei2015xx
Contributor II

Dear Daniel ,

   Thanks very much for your reply.

   In this code, the master reading only one byte, although the read funtion  "mpu6050_read_reg()" can read more byte.

   My project attached.

   Please help check.

   I really confused. 

   Thanks very much.https://pan.wps.cn/l/s0lcLKzIx [文件] flexio_i2c_test.zip

0 项奖励

916 次查看
zhanglei2015xx
Contributor II

sorry,the link should be:  https://docs.wps.cn/view/l/s0lcLKzIx

0 项奖励

916 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Sorry for the delay and thanks for the project.

I don't see anything wrong in it though.

I will try to test it with a slave device on my side.

Do you have any update?

Thanks,

BR, Daniel

0 项奖励

916 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello zhanglei2015xx,

I have tested your code with a slave device, I could reproduce the issue at 400kb/s.

It reads correct value at 100kb/s. Could you try decreasing the baud rate as well.

What pull-up resistors are you using?

Thanks,

BR, Daniel

0 项奖励