I have had a system running successfully with several task running with the *pvParameters set to Null, as I did not need to pass in any variables.
I am upgrading the code so that I can check if the tasks are still running by incrementing a counter passed into the task ‘usTaskCheck[ 1 ]’ (I have used the examples given in the demo app’s)
The problem I have is I configure the code as shown below and for some reason all the other tasks in the system stop running. The vComTxTask1 still runs as configured.
Any ideas or help would be appreciated,
xTaskCreate( vComTxTask1, ( const signed portCHAR * const ) "COMTx", comSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), RabbitPortSettings.uxSerPortPriority, ( xTaskHandle * ) NULL );
static void vComTxTask1( void *pvParameters )
portTickType xRabbitTxTickPeriod = RABBIT_TX_TICK_PERIOD;
volatile unsigned portSHORT *pusTaskCheckVariable;
pusTaskCheckVariable = ( unsigned portSHORT * ) pvParameters;
for( ;; )
vTaskDelayUntil( &xRabbitTxTickTime, xRabbitTxTickPeriod );
( *pusTaskCheckVariable )++; //Tick the task counter
}//end of for