I configured the eclipse with mingw. I inported the project as guided on website in eclipse and it is not running. I am getting error mentioned below:
Description Resource Path Location Type
‘STACK_SIZE_PARAM_IS_A_RESERVATION’ undeclared (first use in this function) port.c /RTOSDemo/FreeRTOS_Source/portable/MSVC-MingW line 286 C/C++ Problem
STACK_SIZE_PARAM_IS_A_RESERVATION is not something that is used or
defined in the FreeRTOS code so I think this is something to do with
your compiler or compiler setup. Googling
STACK_SIZE_PARAM_IS_A_RESERVATION seems to show this is a common constant.
Hi RTE, Thanks for your quick reply. I could not understand the reolution. I just downlaoded the Freertos version 9 from the web i was expecign that it should work out of the box.
Can you please let me know how to do this stting in compiler or in wich file i need to define.
try this one… (hope you are using minGW)
(open definition for “CREATE_SUSPENDED” ) you will get this in …minGW\include\winbase.h
it will be : #define CREATE_SUSPENDED 0x00000004
below this line add : #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
save file and then try to build your project.
I referred value from https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453(v=vs.85).aspx