anonymous wrote on Monday, May 28, 2012:
I am modifing the demo example : AVR32 with FreeRTOS and LwIP provided by Atmel for my application.
I removed the original created task: Basic Web, Basic SMTP and BASIC TFTP, and added my own tasks: SIP_UAC, SIP_UAS and RTP.
The stask size parameter in the create- task function is: SIP_UAC: 256, SIP_UAS: 256, RTP:128. They are smaller than the original provided tasks. When I run the software, I found that the SIP_UAS task can not be created and return NULL. So I removed almost all the things inside the SIP_UAS task and set the stack size parameter to 32 only, the code is now:
#include "FreeRTOS.h"
#include "task.h"
portTASK_FUNCTION( vUASTask, pvParameters)
{
vTaskDelay(100);
}
However, the task still can not be created. Then I removed the SIP_UAC, the SIP_UAS task now can be created. And then I remove SIP_UAS and restore SIP_UAC, the task can be created. I found that it has problem if both SIP_UAC and SIP_UAS exist……but the SIP_UAS task basically has nothing inside except the vTaskDelay() funcion…… anybody can give me some advice? Thank you very much