Dear TI support team,
I have a problem using the TI RTOS HTTP server.
The problem occurs with our custom board (AM3352) as well as with the BeagleBone Black.
I created a new TI RTOS project (toolchain details below) for the BeagleBone Black board.
Then I setup the TCP/IP settings and the HTTP server using the XGCONF tool.
Now I added the required website files, NDK hooks (add-/remove website file) and updated the buffer sizes suitable for networking and the heap memory.
The application starts as well as the TCP/IP stack and the HTTP server.
As long as I only send ICMP Echo Requests ('Ping') - also with bigger data sizes (e.g. 2 KiB) - the TCP/IP stack seems to be stable.
But when I start to send HTTP requests via web browser (once or continuously), the HTTP server and the whole TCP/IP stack stop working after a random time (ranges from 3 min to 20 min).
In this state, the device no longer responds to any network traffic (neither HTTP nor ICMP Echo) and the console starts to output a 'Retransmit Timout' (see a short log below).
The application and the DSP BIOS continue to work, other tasks (in this case only a 1-second UART output task) work as expected.
So the TI RTOS does not seem to crash or stop.
Even if I stop sending further HTTP or ICMP Echo requests, additional 'Retransmit Timeout' messages appear.
To reduce the number of possible error reasons, I used a very simple website for this test application:
* Index HTML only
* no CGI
* no auth-protected websites
* no auth hook function
* Browser reload time 10 s (in case of continuous mode)
Network setup:
Sitara AM3352: 192.168.1.20 (static)
PC: 192.168.1.10 (static)
Tools used:
* CCS 9.0.0.00018
* PDK 1.0.15
* NDK 3.60.0.13
* EDMA3 2.12.5
* SYS/BIOS 6.75.2.00
* XDCtools 3.50.8.24
* Compiler: GNU v7.2.1 Linearo
Console log output:
enter main() Start EMAC Init enter taskFxn() 00000.000 Network Added: 00000.000 If-1:192.168.1.20 00000.000 Service Status: HTTP : Enabled : : 000 01731.800 TcpTimeoutRexmt: Retransmit Timeout 01732.100 TcpTimeoutRexmt: Retransmit Timeout 01741.400 TcpTimeoutRexmt: Retransmit Timeout 01741.600 TcpTimeoutRexmt: Retransmit Timeout 01750.200 TcpTimeoutRexmt: Retransmit Timeout 01750.400 TcpTimeoutRexmt: Retransmit Timeout 01755.800 TcpTimeoutRexmt: Retransmit Timeout 01756.100 TcpTimeoutRexmt: Retransmit Timeout 01759.000 TcpTimeoutRexmt: Retransmit Timeout 01759.200 TcpTimeoutRexmt: Retransmit Timeout 01765.400 TcpTimeoutRexmt: Retransmit Timeout 01765.600 TcpTimeoutRexmt: Retransmit Timeout 01774.200 TcpTimeoutRexmt: Retransmit Timeout 01774.400 TcpTimeoutRexmt: Retransmit Timeout 01783.000 TcpTimeoutRexmt: Retransmit Timeout 01783.200 TcpTimeoutRexmt: Retransmit Timeout 01803.800 TcpTimeoutRexmt: Retransmit Timeout 01804.100 TcpTimeoutRexmt: Retransmit Timeout
You will find the BeagleBone Black CCS project attached to this message.
Kind regards,
Markus
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/Test_5F00_HTTP_5F00_Server.7z