FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2012 Threads] AVR32 + FreeRTOS + LwIP create task problemPosted by garypty on 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
RE: AVR32 + FreeRTOS + LwIP create task problemPosted by garypty on May 28, 2012 Sorry the code should be: #include "FreeRTOS.h" #include "task.h"
portTASK_FUNCTION( vUASTask, pvParameters) { for(;;){ vTaskDelay(100); } }
RE: AVR32 + FreeRTOS + LwIP create task problemPosted by Dave on May 28, 2012 When you converted the Atmel project, did you change any setting in FreeRTOSConfig.h? If the project used to create more tasks with bigger stacks than your application is trying to do then you should not have an issue with the task stack sizes. Step through the xTaskCreate() function to see where it fails. If you are using heap_1.c or heap_2.c then you can also define a malloc failed hook function (vApplicationMallocFailed() I think) to trap memory allocation problems.
What is configTOTAL_HEAP_SIZE set to in FreeRTOSConfig.h (only relevant if heap_1.c or heap_2.c is used)?
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|