Other Parts Discussed in Thread: SYSBIOS
Hello
I have a system with several tasks and sometimes the enclosed task controlling ADC conversions (which has second highest priority) blocks without reasons.
Some other times instead a stack overflow is reported end the micro goes into the error handler directly after program start.
The only way to recover from this issue is to build again the system with all the task's code removed, and then build it again with the code restored.
By doing this the code runs.
Semaphore_Handle Adc_sem;
void Adc_ctrl_task(UArg a0, UArg a1)
{
Error_Block eb;
Semaphore_Handle Adc_sem;
Error_init(&eb);
Adc_sem = Semaphore_create(0, NULL, &eb);
assert(Adc_sem != NULL);
HAL_adc_initialize();
while (FOREVER())
{
HAL_adc_conversion_start();
Task_sleep(1);
}
}
We are using CCS v10.4.0.00006,
SYSBIOS 6.37.3.35
XDCTOOLS 3.25.6.96

