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


taskHandles.xTaskControl =   xTaskCreateStatic (  Function,
                                                      "F Control", 
                                                      (void *) 1, 
                                                      tskIDLE_PRIORITY + 5, 

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?


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