I have freertos 4.0.0 with the lwip tcp/ip stack version 1.1.1. I have a task that gets a website from a sd-card on a request on port 80 and sends it to the client. I’m using the at91sam7x256 port for rowley commandline.
The webserver task at random points stops sending data to the client. Sometimes it stops after sending a few KB and sometimes after a few MB.
Besides this task there is the errorcheck and the tcp/ip stack task. Those both stay alive. The led keeps flashing and my board is still pingable.
I’ve found that my webserver fails in this function:
signed portBASE_TYPE xQueueReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait )
When calling the taskYIELD(); function.
The taskYIELD function is a define of portYIELD();, which is a define for asm volatile ("SWI");
SWI is the assembly instruction for the software interrupt.
At this point the os wil switch to a task with a higher priority wich has something to do. After that it wil never handle my webservertask again.
The task is still visible in the tasklist.