Does I2C Platform sdk test works for iMX6q SDP board?

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

Does I2C Platform sdk test works for iMX6q SDP board?

Jump to solution
1,023 Views
johnturnur
Contributor III

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

Labels (2)
0 Kudos
1 Solution
718 Views
maheshmahadeva1
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
4 Replies
718 Views
YixingKong
Senior Contributor IV

John, please click Correct Answer/Helpful Answer, if your question has been answered.

Thanks,

Yixing

0 Kudos
719 Views
maheshmahadeva1
NXP Employee
NXP Employee

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

0 Kudos
718 Views
hyunjaejun
Contributor II

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.

0 Kudos
718 Views
maheshmahadeva1
NXP Employee
NXP Employee

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

0 Kudos