Hello, i am working on a custom board using k64 and i have just accesed it via jtag,tested some basic pin I/O and it's ok.
I now have a problem accessing the MMA8451Q over I2C .
I have used the electrical schematic as advised in it's datasheet (SA0 is pulled down via 10k resistor). On the microcontroller side i am using PTE0 (I2C1_SDA) and PTE1(I2C1_SCL) both with 2k2 pull up resistors.
I have tried using the example from the sdk:cmsis_i2c_read_accel_value_transfer .
I have replaced the pins and port used in the example with my own and the console says that it is not able to find and accelerometer device.
I have also tried to modify the macro on line 22 into pointing to Driver_I2C1 instead of Driver_I2C0 and in the rest of the file into I2C1 but it gives compilation errors.
Any thoughts ?
kerryzhou? would you be so kind as to lend me a helping hand once more ?
------------------------------ Hi Bogdan Nica,
It's very good that you find the root problem.
Do you still have any question about this topic?
If you still have question about it, please kindly let me know.
If your question is solved, please help me to mark the correct answer, just to close this case, thank you!
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the Mark Correct button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------