I'm trying to include opentcp in my application. I have a small UART application which is writing data to the serial port just fine. This is on a M52235EVB. I'm using gcc under Linux. However, when I include opentcp and call arpinit in my program it will not run. This occurs even if arpinit is called at the very end of the program. It will lock up long before the it reaches the call to arpinit. If I change the #if 0 to a #if 1 I will never reach the arpinit. uart_putchar(0,'>');
while (1) {
if (uart_getchar_present(0)) {
led = ~led;
led_val(led);
c = uart_getchar(0);
uart_putchar(0,c);
if (c== 'q') {
break;
}
}
}
#if 0
arpinit();
#endif
It seems like it's the inclusion of arpinit which is causing the problem. Any ideas or anybody who has experienced similar problems?TIA.