MMA8452Q Linux Driver

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

MMA8452Q Linux Driver

1,424 Views
lizboxy
Contributor I

Hi,Sir:

When we use "Linux kernel modules for MMA845xQ accelerometers" to driver MMA8452Q, but after complie and text.

But always got wrong data, pls check the pic information of log and I2C in attached for detial.

Pls advise,TKs!

Labels (1)
0 Kudos
1 Reply

1,347 Views
reyes
NXP TechSupport
NXP TechSupport

Hi,

 

Seems in your scopes that your master is generating a STOP condition after you write the 0x0D register (WHO AM I register), then a START condition for the read, I’m not sure if the MMA8452 can handle this, please try to send a REPEATED START condition instead of this STOP/START condition.

 

Regards,

Jose

NXP Semiconductors

0 Kudos