S32DS for S32 platform仿真异常

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS for S32 platform仿真异常

1,251 Views
shunyizhang
Contributor IV

S32DS for S32 platform:Version V3.5

After configuring Freertos, simply write a test task program,

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);     /* 任务句柄 */
 
void LowInfoSampleTask(void *p)
{
 
    p = p;
for(;;)
{
sampData++;
 
switch(sState)
{
case 0:
//DEVADCStart(eDEVADC_MOD0, eADC_HS_demoPTA9);
sState = 1;
OSIF_TimeDelay(10);
break;
 
case 1:
//watchData = DEVADCGetSampAD(eDEVADC_MOD0, eADC_HS_demoPTA9);
sState = 0;
OSIF_TimeDelay(10);
break;
 
}
}
 

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?

shunyizhang_0-1695462163463.png

 

0 Kudos
Reply
3 Replies

1,092 Views
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi. @shunyizhang .

 

Please can you try and let us know any update on the issue. 

 

Thank you.

 

Best regards.

 

- Mehul Patel

0 Kudos
Reply

1,103 Views
MinhNQ39
NXP Employee
NXP Employee

Capture.PNG

0 Kudos
Reply

1,108 Views
MinhNQ39
NXP Employee
NXP Employee

//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

0 Kudos
Reply