xTaskCreateStatic parameters "(void *) 1" does not allow IAR Embedded Workbench for ARM

Hi,

taskHandles.xTaskControl =   xTaskCreateStatic (  Function,
                                                      "F Control", 
                                                      globalSTACK_SIZE_FTASK, 
                                                      (void *) 1, 
                                                      tskIDLE_PRIORITY + 5, 
                                                      taskStacks.xFControl,
                                                      &taskBuffers.xFControl); 

When I want to create task on IAR Embedded Workbench for ARM, I got this error;
"Error[Pe513]: a value of type “int” cannot be assigned to an entity of type “void *” "

When I write the code on Code Composer Studio, it works perfectly. What should I do?

Hi,

I Solved my problem. I am writing this for helping other developer that facing same problem.

I set “configSUPPORT_STATIC_ALLOCATION” to 1 in the FreeRTOSConfig.h