Hi Prasanth,
could you please add this task in 'main.c' and check whether this tasks runs correctly on your system?
Insert this declaration part at the beginning:
static void AdcThread( void * arg );
int Count1 = 0;
int Count2 = 0;
Insert this part after the Embedded Wizard thread creation:
/* create thread that drives the ADC application... */
EwPrint( "Create ADC thread... " );
xTaskCreate( AdcThread, "Adc_Task", 100, NULL, 0, NULL );
EwPrint( "[OK]\n" );
Insert this in 'main.c'.
static void AdcThread( void* arg )
{
while(1)
{
Count1++;
if(Count1 % 100000 == 0)
{
Count2++;
EwPrint("Count2 = %d\n", Count2);
// Insert ADC routine...
}
}
}
This task runs on my NXP system as it should. If it also runs correctly on your system, please insert your ADC code after '// Insert ADC routine...' and optinal remove the EwPrint() statements. As you can see, this task has a lower stack depth of '100'. Probably that was the problem with your ADC task.
Regarding to your question why the tasks aren't shown in the MCUXpresso task overview, please use the MCUXpresso manual to check whats to do to enable this feature. By the way, this feature also doesn't show the running task within my project, but they are definitely running correctly.
Hopefully this will help you.
Kind regards
Tim