I’m learning to use the FreeRTOS and I’m modifying the LM3S811 demo.
I’ve added a simple led flasher task, getting good results.
Then I’ve added a very simple dummy task which increments a variable.
Also this new task works ok, but… the vCheckTask fails, returning xErrorOccurred = pdTRUE.
This strange behaviour appears when I add the dummy task to the existing ones and also when I leave it alone removing from the code the led flasher task.
In other words, the problem seems to be related to the dummy task itself.
I use the heap_1.c and I set the following defines to:
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7500 ) )
Here’s the small piece of code that I use:
static void vDummyTask( void *pvParameters );
xTaskCreate( vDummyTask, “Dummy”, configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );
static void vDummyTask( void *pvParameters )
unsigned portLONG ulSpy = 0;
for( ;; )