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 !!!!
Hi Khaled,
Otherwise can you try manually,
1) Set the baudrate
=> stty -F /dev/ttymxc(UART no) 115200
2) If you want to send data
=> echo "ARAVINTH" > /dev/ttymxc(UART no)
3) If you want Receive Data
=> cat /dev/ttymxc(UART no)
Regards,
Aravinth
Hi aravinthkumar,
First thank u for your kind reply
I tried this trial 2 weeks ago and i couldn't send
let me ask u did you work with SDK v1.1 ?
Hi Khaled,
I'm not worked on SDK v1.1.
But i think UART same for all.
Regards,
Aravinth
Hi Aravinth,
So can you send me your UART driver what ever working with SDK or something else ?
and thank u in advance
Regrards,
Khaled
Hi Khaled
after hang one can try to attach jtag and check uart regsiters, in particular
UARTx_URXD for errors.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov,
What if i haven't a jtag ?
i'm in need of SDK v1.1 support can you help me with this ?
What if i haven't a jtag to check the registers ?