hi all,
i'm trying to run the i2c_test code imx6_sdk_platform but there is a problem in sending a character from my PC to UDOO board via uart to
choose which device
i want or exit the program
the i2c_test code locates at /sdk/driver/i2c/test
this is the segment of code that i'm trying to execute :
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 = uart_getchar(g_debug_uart_port);
} 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);
//-----------------------------------------------------------------------------------------------------------------------
my program hangs at the inner do -while loop
do {
sel = uart_getchar(g_debug_uart_port);
} while (sel == NONE_CHAR);
i tried to send a character from minicom and putty and the same problem appears there is no action !!!!