s32k144 flexio_i2c read error

cancel
Showing results for 
Search instead for 
Did you mean: 

s32k144 flexio_i2c read error

555 Views
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

Labels (1)
Tags (2)
0 Kudos
5 Replies

401 Views
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 Kudos

401 Views
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 Kudos

401 Views
zhanglei2015xx
Contributor II

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

0 Kudos

401 Views
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 Kudos

401 Views
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 Kudos