This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LwIP stack hangs in sitaraif_tx_inthandler

Other Parts Discussed in Thread: AM1808

Hello e2e,

Our application implements Starterware 1.00.02.02 with Code Sourcery GCC toolchain (arm-none-eabi-v2009q1 arm-non-eabi) on AM1808 eXp board. The application opens two ports over an static IP (80 and yet another) for Webserver and TCP packet data application. This is primarily combination of enet_Lwip and enet_Echo projects. Not required to mention the application has other code in bare-metal while loop implementation with very less interrupt code except lwip and USB.

The application hangs in release and debug mode on following line in sitaraif_tx_inthandler() of sitaraif.c 

while((curr_bd->flags_pktlen & EMAC_BUF_DESC_OWNER) == EMAC_BUF_DESC_OWNER);

The load is minimized by not connecting USB (but the code has it), however still it hangs. The code hangs over Intranet, however we haven't tested it on direct connection to PC over Ethernet as that is not the aim of this application. 

After looking at the similar issue over e2e (http://e2e.ti.com/support/embedded/starterware/f/790/t/171893.aspx) we thought to modify the code  with  curr_bd->flags_pktlen |= ((CPDMA_BUF_DESC_SOP | CPDMA_BUF_DESC_OWNER) |CPDMA_BUF_DESC_TO_PORT(1)); however there is no "port" object in sitaraif structure.

Please advise. Are there plans of porting new version of lwip for Starterware 1.00.02.02?

Regards,

Yogendra