S32DS for S32 platform:Version V3.5
After configuring Freertos, simply write a test task program,
Find a phenomenon, as long as the break point in this cycle task. After a few seconds, the problem of the icon appeared, and the entire simulation interface died directly. What is the reason?
Hi. @shunyizhang .
Please can you try and let us know any update on the issue.
Thank you.
Best regards.
- Mehul Patel
//xTaskCreate((TaskFunction_t) LowInfoSampleTask,
//(const char * const)"LowInfoSampleTask",
//(u16) LV_SAMP_TASK_SIZE,
//(void *) NULL,
//(UBaseType_t) RTOS_ID_LV_SAMP,
//(TaskHandle_t *) &LowADCSample_Handler);
uint32_t sampData=0;
uint8_t sState=0;
void LowInfoSampleTask(void *p)
{
p = p;
for(;;)
{
sampData++;
switch (sState) {
case 0:
//DEVADCStart(eDEVADC_MOD0, eADC_HS_demoPTA9);
sState = 1;
vTaskDelay(pdMS_TO_TICKS(1000));
break;
case 1:
//watchData = DEVADCGetSampAD(eDEVADC_MOD0, eADC_HS_demoPTA9);
sState = 0;
vTaskDelay(pdMS_TO_TICKS(1000));
break;
}
}
}
xTaskCreate( LowInfoSampleTask, ( const char * const ) "LowInfoSampleTask" , configMINIMAL_STACK_SIZE, (void*)NULL, main_TASK_PRIORITY + 2, NULL );
I tried following the source code above into example of K342. I used xTaskCreate of FreeRTOS and successful