Hello ,
We are working to make i2c Driver, and for reference we have tried to run I2c test resides in platform SDK v1.1.0.
This test is getting failed and there is no documentation about how to run test.
Can any one guide me on this unit_test?
Thanks,
John
Solved! Go to Solution.
The test was written to run on a different i.MX6Q board, it will not work on the i.MX6q SDP board as this board does not have an EEPROM populated.
Best regards,
-Mahesh
John, please click Correct Answer/Helpful Answer, if your question has been answered.
Thanks,
Yixing
The test was written to run on a different i.MX6Q board, it will not work on the i.MX6q SDP board as this board does not have an EEPROM populated.
Best regards,
-Mahesh
hi
Then, at i.MX6Q SDP, how can i test the i2c unit test?
for example, there is a /imx-test-3.0.35-4..0/test/mxc_i2c_test.c
thanks.
Below is the code I see:
_____________________________________
printf("Start I2C unit tests:");
do {
printf("\n 1 - to perform a test with the i.MX6 as a master accessing an EEPROM.\n");
printf(" 2 - to perform a test with the i.MX6 as a slave device.\n");
printf(" x - to exit.\n\n");
do {
sel = getchar();
} while (sel == NONE_CHAR);
if (sel == 'x') {
printf("\nTest exit.\n");
break;
}
if (sel == '1')
i2c_eeprom_at24cxx_test();
if (sel == '2')
i2c_imx6_slave_test();
} while(1);
_________________________________________
On the MX6Q SDP you will have to use option 2.
Best regards,
-Mahesh