i2c accelerometer on sabresd

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

i2c accelerometer on sabresd

1,731 Views
bottleneck
Contributor II

Hi All,

Currently using SABRESD with an RTOS. Trying to test MMA8451Q accelerometer with i2c driver, but I don't get acknowledge from the device. Could anyone share the frequency divider and sample driver to check it.

Labels (4)
Tags (2)
0 Kudos
Reply
7 Replies

1,515 Views
igorpadykov
NXP Employee
NXP Employee

HiUmamahesh

suggest to look at accelerometer_test.c in SDK :

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,515 Views
bottleneck
Contributor II

There is a list of documents, please share it specifically or guide with the exact values in which accelerometer on freescale SABRESD responds. I just send address of the slave but I never receive acknowledge and the frequency divider set to 0xd.

0 Kudos
Reply

1,515 Views
igorpadykov
NXP Employee
NXP Employee

please check attached files.

0 Kudos
Reply

1,515 Views
bottleneck
Contributor II

Thanks for the code, but ultimately looking for frequency value set from i.mx6, few part of  code like i2c_read/_write where library in the code. These details are missing. I need exact value of IFDR value set for mma8451q slave to be responded.

0 Kudos
Reply

1,515 Views
igorpadykov
NXP Employee
NXP Employee

had you looked in full sources

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

igor

0 Kudos
Reply

1,515 Views
bottleneck
Contributor II

Any possibility to share the i2c configuration for getting acknowledge from mag3110

0 Kudos
Reply

1,515 Views
bottleneck
Contributor II

It would be helpful if exact values of I2C frequency divider value if possible to be shared for all the i2c devices on SABRESD. Please do needful

0 Kudos
Reply