FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2015 Threads] fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 3, 2015 Hello there
I'm newbie at FreeRTOS, Before getting starts, I'd installed eclipse Kepler, and then gcc 4.9.2 MinGW along with latest version of free RTOS 8.2.1
then after I've import FreeRTOS Demo as explained on freertos sight.
now when i building new "Hello world" demo project then it shows me following error
"fatal error: freeRTOS.h: No such file or directory"
can any one help me!
I'll appreciate all precious comments
here is snap of my setup on eclipse
http://picpaste.com/ms-QlZ2YNHq.jpg
fatal error: freeRTOS.h: No such file or directoryPosted by heinbali01 on May 3, 2015 Hello Mahendra,
The header file FreeRTOS.h is part of the FreeRTOS kernel and it is located in:
<FreeRTOS source>\include\FreeRTOS.h
It is included as :
#include "FreeRTOS.h"
so you will have to tell the compiler where to find this header file. Right-click on your project "mahendra" and look for "paths and symbols" or "include directories".
It must have an entry like <FreeRTOS source>\include where <FreeRTOS source> is some environment variable pointing to a directory in your projec space, or an absolute path.
Good luck.
fatal error: freeRTOS.h: No such file or directoryPosted by tlafleur on May 3, 2015 This is an IDE setup problem, your IDE needs to know the path to the .h files..
i~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~i
Tom Lafleur
On May 3, 2015, at 4:28 AM, MAHENDRA_MS mahendra12345@users.sf.net wrote:
Hello there
I'm newbie at FreeRTOS, Before getting starts, I'd installed eclipse Kepler, and then gcc 4.9.2 MinGW along with latest version of free RTOS 8.2.1
then after I've import FreeRTOS Demo as explained on freertos sight.
now when i building new "Hello world" demo project then it shows me following error
"fatal error: freeRTOS.h: No such file or directory"
here is snap of my setup on eclipse
http://picpaste.com/ms-QlZ2YNHq.jpg
fatal error: freeRTOS.h: No such file or directory
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
fatal error: freeRTOS.h: No such file or directoryPosted by rtel on May 3, 2015 The project should, in theory, be pre-configured. So if it is imported
into Eclipse using the introductions on the website (which you say you
followed) then its curious this error should occur.
Did you change the directory structure at all? The project references
files from outside of its own project directory, so if so try importing
a project from a clean unzip of the FreeRTOS distribution, without any
modifications to the directory structure.
Are you building on Windows or Linux? If on Linux then there is the
possibility that there is a backslash where there should be a forward
slash as a path separator, or that there is a case sensitivity problem
in the file names where the files are #included.
I have just tried importing the project and building it myself and
didn't have a problem. I can't see any backslashes in the include paths.
The include paths in the project are:
"${workspaceloc:/${ProjName}/FreeRTOSSource/include}"
"${workspaceloc:/${ProjName}/FreeRTOS+Trace Recorder/Include}"
"${workspaceloc:/${ProjName}/TraceRecorderConfiguration}"
"${workspaceloc:/${ProjName}}"
"${workspaceloc:/${ProjName}/StandardDemoTasks/Include}"
"${workspaceloc:/${ProjName}/FreeRTOSSource/portable/MSVC-MingW}"
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 4, 2015 Hello
Hein Tibosch, Thanx for reply,
i did settings as per you suggested to me(project property->C/C++ General->path and symbol->add directory path->C:FreeRTOSV8.2.1FreeRTOSSourceincludeFreeRTOS.h) and then compile but unfortunately i got lots of errors!
at which point I'm going wrong?
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 4, 2015 Thank you for reply,
can you give me bit more info. at where i do include these path and how?
apart from this when i build freeRTOS demo file then I'm getting following message
"
Trace started. Hit a key to dump trace file to disk (does not work from Eclipse console)"
I'm using windows 8 os
fatal error: freeRTOS.h: No such file or directoryPosted by rtel on May 4, 2015 In the Eclipse Project Explorer window - right click on the project and
select 'properties'.
To view the include path in the properties window select C/C++
Build->Settings->GCC C Compiler->Includes
If you have imported the project as per the instruction you should find
the paths are already set as per my previous post.
Maybe you didn't import the project correctly? You must select
"General->Existing Projects Into Workspace" when importing.
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 4, 2015 Thanks admin for reply,
as per your suggestion for FreeRTOS demo i show include directories in
C/C++
Build->Settings->GCC C Compiler->Includes
and i found that all links that you post earlier in previous comment.
Now i need to develop my own code that's why I've created new c project named "mahendra" and wrote hello world simple code for FreeRTOS and include that all include path, and hit build but still I'm getting same error!
please consider attached snap
Regards
Mahendra
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 5, 2015 Hopefully waiting for answer............ :)
fatal error: freeRTOS.h: No such file or directoryPosted by heinbali01 on May 5, 2015 Sometimes the Eclipse environment doesn't like backslashes "" and spaces in a path.
You might want to add the path as
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include
if that is where FreeRTOS.H etc can be found.
Richard suggested a more portable way:
"${workspace_loc:/${ProjName}/FreeRTOS_Source/include}"
When using variables like ${ProjName} , it is possible to move your project later on to another location.
PS. If you are more experienced using Make and Makefile (like I am), then I would advice to import a Makefile project into Eclipse (see import Makefile Project). In that case Eclipse will call Make to execute your Makefile and then run the created .ELF
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 7, 2015 Thank you very much for your reply,
OK, I'd tried with "make file" new project, I'd taken following stapes,
(1)NEW->c project->project name="ms_rtos", PATH="C:FreeRTOSV8.2.1FreeRTOSSource", TOOLCHAIN= "MinGW GCC" , makefile project=Empty project->next.
(2)c/c++ General->path and symbols->"C:/FreeRTOSV8.2.1/FreeRTOS/Source/include".
OR,
"${workspaceloc:/${ProjName}/FreeRTOSSource/include}"
(3)C/C++ Build->Settings->GCC C Compiler->Includes
"${workspaceloc:/${ProjName}/FreeRTOSSource/include}"
"${workspaceloc:/${ProjName}/FreeRTOS+Trace Recorder/Include}"
"${workspaceloc:/${ProjName}/TraceRecorderConfiguration}"
"${workspaceloc:/${ProjName}}"
"${workspaceloc:/${ProjName}/StandardDemoTasks/Include}"
"${workspaceloc:/${ProjName}/FreeRTOSSource/portable/MSVC-MingW}"
After doing such thing when i hit build then i found sane errors and warnings that I'd impact earlier.
Error list,
07:53:07 **** Incremental Build of configuration Default for project MS_RTOS ****
make all
'Building file: ../scr/ms.c'
'Invoking: GCC C Compiler'
gcc -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"scr/ms.d" -MT"scr/ms.d" -o "scr/ms.o" "../scr/ms.c"
../scr/ms.c:10:21: warning: FreeRTOS.h: No such file or directory
../scr/ms.c:11:18: task.h: No such file or directory
../scr/ms.c: In function hello_world_task':
../scr/ms.c:17: warning: implicit declaration of function vTaskDelay'
../scr/ms.c: In function main':
../scr/ms.c:23: warning: implicit declaration of function xTaskCreate'
../scr/ms.c:23: warning: implicit declaration of function STACK_BYTES'
../scr/ms.c:24: warning: implicit declaration of function vTaskStartScheduler'
make: *** [scr/ms.o] Error 1
07:53:08 Build Finished (took 1s.136ms)
Now can any one tell me whether I've taken right steps to create make file and include path or not?
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 8, 2015 More-ever when i build FreeRTOS demo project then I'm getting following message from it,
Trace started. Hit a key to dump trace file to disk (does not work from Eclipse console).
OK - 2504
OK - 5004
OK - 7504
OK - 10004
OK - 12504
OK - 15004
OK - 17504
fatal error: freeRTOS.h: No such file or directoryPosted by rtel on May 8, 2015 The output looks correct - so does this mean your problem is solved?
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 9, 2015 Thanx for reply,
But it's not solved yet, as I'd created new project file, and it's not properly links to "FreeRTOS.h" and "task.h" for my first "hello world" simulation.
In previous post I'd show that all steps from new file creation to links to them it's header file and sofar I'm not getting my answer at which points i did mistake.
Guys, it's my hardcore prescription to learn freeRTOS, please help me :)
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 27, 2015 hello there,
as i told i'd solved problem associated with freeRTOS demo project output and I'm getting proper output.
But problem is when i create new project and build it then its shows lots of errors and warnings like,
//******************************************************************************
08:10:53 **** Incremental Build of configuration Debug for project msRTOS ****
Info: Internal Builder is used for build
gcc "-IC:\Users\LENOVO\workspace\msRTOS" "-IC:\FreeRTOSV8.2.1\FreeRTOS\Source" "-IC:\FreeRTOSV8.2.1\FreeRTOS\Source\include" -O0 -g3 -Wall -c -fmessage-length=0 -o "scr\ms.o" "..\scr\ms.c"
In file included from ..scrms.c:11:
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/FreeRTOS.h:98:28: FreeRTOSConfig.h: No such file or directory
In file included from C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/FreeRTOS.h:104,
from ..scrms.c:11:
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:94:24: portmacro.h: No such file or directory
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:114:3: #error "Invalid portBYTEALIGNMENT definition"
In file included from C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/FreeRTOS.h:104,
from ..scrms.c:11:
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:136: error: syntax error before '' token
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:136: error: syntax error before '' token
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:136: warning: type defaults to int' in declaration of pxPortInitialiseStack'
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:136: warning: data definition has no type or storage class
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:173: error: syntax error before "xPortStartScheduler"
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:173: warning: type defaults to int' in declaration of xPortStartScheduler'
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/portable.h:173: warning: data definition has no type or storage class
In file included from ..scrms.c:11:
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/FreeRTOS.h:113:3: #error Missing definition: configMINIMALSTACKSIZE must be defined in FreeRTOSConfig.h. configMINIMALSTACKSIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value.
C:/FreeRTOSV8.2.1/FreeRTOS/Source/include/FreeRTOS.h:117:3: #error Missing definition: configMAXPRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
//***************************************************************************************
and in front of all include files i can see explanation marks.
can any on help me. the steps that I'd taken is described in my previous post
Attachmentsms_rtos.JPG (240101 bytes)
fatal error: freeRTOS.h: No such file or directoryPosted by rtel on May 27, 2015 Did you look at the error messages in the output produced by the compiler? Did you follow the instructions on the FreeRTOS website to create a new project?
The clue might be right at the top where it says "FreeRTOSConfig.h: No such file or directory".
Regards.
fatal error: freeRTOS.h: No such file or directoryPosted by mahendra12345 on May 31, 2015 Thanx for reply,
http://www.freertos.org/Creating-a-new-FreeRTOS-project.html
as per described FreeRTOS sight for making new project i'd include all necessary file but still i'm getting errors which are mostly associated with task.c file
please have a look results of project and errors,and guide me at which point i'm getting wrong!
..tasks.c:1834: error: syntax error before '' token
..tasks.c:1835: warning: return type defaults to int'
..\tasks.c: In function uxTaskGetSystemState':
..tasks.c:1836: error: syntax error before "uxTask"
..tasks.c:1841: error: uxArraySize' undeclared (first use in this function)
..\tasks.c:1847: error: uxQueue' undeclared (first use in this function)
..tasks.c:1848: error: uxTask' undeclared (first use in this function)
..\tasks.c:1848: error: pxTaskStatusArray' undeclared (first use in this function)
..tasks.c:1850: error: syntax error before numeric constant
..tasks.c:1854: error: syntax error before ')' token
..tasks.c:1855: error: syntax error before ')' token
..tasks.c:1875: error: pulTotalRunTime' undeclared (first use in this function)
..\tasks.c: At top level:
..\tasks.c:1939: error: xTaskIncrementTick' declared as function returning a function
..tasks.c: In function xTaskIncrementTick':
..\tasks.c:1940: error: pxTCB' undeclared (first use in this function)
..tasks.c:1941: error: syntax error before "xItemValue"
..tasks.c:1942: error: function xSwitchRequired' is initialized like a variable
..\tasks.c:1942: error: cast specifies function type
..\tasks.c:1947: error: cast specifies function type
..\tasks.c:1947: error: cast specifies function type
..\tasks.c:1948: error: cast specifies function type
..\tasks.c:1957: error: syntax error before "xConstTickCount"
..\tasks.c:1959: error: xConstTickCount' undeclared (first use in this function)
..tasks.c:1959: error: syntax error before numeric constant
..tasks.c:1961: error: request for member uxNumberOfItems' in something not a structure or union
..\tasks.c:1961: error: syntax error before numeric constant
..\tasks.c:1961: error: pxTemp' undeclared (first use in this function)
..tasks.c:1961: error: wrong type argument to increment
..tasks.c:1976: error: request for member uxNumberOfItems' in something not a structure or union
..\tasks.c:1976: error: syntax error before numeric constant
..\tasks.c:1976: error: cast specifies function type
..\tasks.c:1983: error: syntax error before numeric constant
..\tasks.c:1992: error: syntax error before ')' token
..\tasks.c:1992: error: request for member xListEnd' in something not a structure or union
..tasks.c:1993: error: xItemValue' undeclared (first use in this function)
..\tasks.c:2036: error: request for member uxPriority' in something not a structure or union
..tasks.c:2038: error: cast specifies function type
..tasks.c: At top level:
..tasks.c:2055: error: syntax error before '{' token
..tasks.c:2114: error: syntax error before "TaskHookFunctiont"
..tasks.c: In function vTaskSetApplicationTaskTag':
..\tasks.c:2116: error: xTCB' undeclared (first use in this function)
..tasks.c:2120: error: xTask' undeclared (first use in this function)
..\tasks.c:2122: error: syntax error before ')' token
..\tasks.c:2126: error: syntax error before ')' token
..\tasks.c:2132: error: pxHookFunction' undeclared (first use in this function)
..tasks.c: At top level:
..tasks.c:2141: error: syntax error before "xTaskGetApplicationTaskTag"
..tasks.c:2142: warning: return type defaults to int'
..\tasks.c: In function xTaskGetApplicationTaskTag':
..tasks.c:2143: error: xTCB' undeclared (first use in this function)
..\tasks.c:2144: error: TaskHookFunctiont' undeclared (first use in this function)
..tasks.c:2144: error: syntax error before "xReturn"
..tasks.c:2149: error: syntax error before ')' token
..tasks.c:2153: error: syntax error before ')' token
..tasks.c: At top level:
..tasks.c:2173: error: xTaskCallApplicationTaskHook' declared as function returning a function
..\tasks.c: In function xTaskCallApplicationTaskHook':
..tasks.c:2174: error: xTCB' undeclared (first use in this function)
..\tasks.c:2180: error: syntax error before ')' token
..\tasks.c:2184: error: syntax error before ')' token
..\tasks.c:2193: error: cast specifies function type
..\tasks.c:2196: warning: return makes integer from pointer without a cast
..\tasks.c: In function vTaskSwitchContext':
..tasks.c:2204: error: cast specifies function type
..tasks.c:2208: error: cast specifies function type
..tasks.c:2212: error: cast specifies function type
..tasks.c:2232: error: request for member ulRunTimeCounter' in something not a structure or union
..\tasks.c:2248: error: syntax error before "uxTopPriority"
..\tasks.c:2248: warning: implicit declaration of function portGETHIGHESTPRIORITY'
..tasks.c:2248: error: uxTopPriority' undeclared (first use in this function)
..\tasks.c:2248: error: syntax error before "const"
..\tasks.c:2248: error: pxConstList' undeclared (first use in this function)
..tasks.c: At top level:
..tasks.c:2262: error: syntax error before '' token
..tasks.c: In function vTaskPlaceOnEventList':
..\tasks.c:2264: error: syntax error before "xTimeToWake"
..\tasks.c:2266: error: pxEventList' undeclared (first use in this function)
..tasks.c:2275: error: request for member xEventListItem' in something not a structure or union
..\tasks.c:2280: error: request for member xGenericListItem' in something not a structure or union
..tasks.c:2280: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2306: warning: type defaults to int' in declaration of prvAddCurrentTaskToDelayedList'
..tasks.c:2306: warning: parameter names (without types) in function declaration
..tasks.c:2306: warning: data definition has no type or storage class
..tasks.c:2307: error: syntax error before '}' token
..tasks.c:2321: error: syntax error before '' token
..tasks.c: In function vTaskPlaceOnUnorderedEventList':
..\tasks.c:2323: error: syntax error before "xTimeToWake"
..\tasks.c:2325: error: pxEventList' undeclared (first use in this function)
..tasks.c:2334: error: request for member xEventListItem' in something not a structure or union
..\tasks.c:2334: error: xItemValue' undeclared (first use in this function)
..tasks.c:2341: error: request for member xEventListItem' in something not a structure or union
..\tasks.c:2346: error: request for member xGenericListItem' in something not a structure or union
..tasks.c:2346: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2372: warning: type defaults to int' in declaration of prvAddCurrentTaskToDelayedList'
..tasks.c:2372: warning: parameter names (without types) in function declaration
..tasks.c:2372: warning: data definition has no type or storage class
..tasks.c:2373: error: syntax error before '}' token
..tasks.c:2389: error: syntax error before '' token
..tasks.c: In function vTaskPlaceOnEventListRestricted':
..\tasks.c:2391: error: syntax error before "xTimeToWake"
..\tasks.c:2393: error: pxEventList' undeclared (first use in this function)
..tasks.c:2405: error: request for member xEventListItem' in something not a structure or union
..\tasks.c:2411: error: request for member xGenericListItem' in something not a structure or union
..tasks.c:2411: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2424: warning: type defaults to int' in declaration of xTimeToWake'
..tasks.c:2424: error: xTicksToWait' undeclared here (not in a function)
..\tasks.c:2424: warning: data definition has no type or storage class
..\tasks.c:2426: error: syntax error before '(' token
..\tasks.c:2426: error: syntax error before '(' token
..\tasks.c:2426: error: syntax error before '(' token
..\tasks.c:2426: error: syntax error before '(' token
..\tasks.c:2427: warning: type defaults to int' in declaration of prvAddCurrentTaskToDelayedList'
..\tasks.c:2427: warning: parameter names (without types) in function declaration
..\tasks.c:2427: warning: data definition has no type or storage class
..\tasks.c:2428: error: syntax error before '}' token
..\tasks.c:2433: warning: type defaults to int' in declaration of List_t'
..\tasks.c:2433: error: syntax error before '*' token
..\tasks.c:2434: error: xTaskRemoveFromEventList' declared as function returning a function
..tasks.c: In function xTaskRemoveFromEventList':
..\tasks.c:2435: error: pxUnblockedTCB' undeclared (first use in this function)
..tasks.c:2451: error: syntax error before ')' token
..tasks.c:2451: error: pxEventList' undeclared (first use in this function)
..\tasks.c:2455: error: cast specifies function type
..\tasks.c:2467: error: request for member uxPriority' in something not a structure or union
..tasks.c:2472: error: cast specifies function type
..tasks.c:2476: error: cast specifies function type
..tasks.c:2480: error: cast specifies function type
..tasks.c:2497: warning: return makes integer from pointer without a cast
..tasks.c: At top level:
..tasks.c:2501: warning: type defaults to int' in declaration of TickTypet'
..tasks.c:2501: error: syntax error before "xItemValue"
..tasks.c:2502: error: xTaskRemoveFromUnorderedEventList' declared as function returning a function
..\tasks.c: In function xTaskRemoveFromUnorderedEventList':
..tasks.c:2503: error: pxUnblockedTCB' undeclared (first use in this function)
..\tasks.c:2508: error: cast specifies function type
..\tasks.c:2511: error: pxEventListItem' undeclared (first use in this function)
..tasks.c:2511: error: xItemValue' undeclared (first use in this function)
..\tasks.c:2515: error: syntax error before ')' token
..\tasks.c:2525: error: request for member uxPriority' in something not a structure or union
..tasks.c:2531: error: cast specifies function type
..tasks.c:2535: error: cast specifies function type
..tasks.c:2539: error: cast specifies function type
..tasks.c:2542: warning: return makes integer from pointer without a cast
..tasks.c: At top level:
..tasks.c:2546: error: syntax error before '' token
..tasks.c: In function vTaskSetTimeOutState':
..\tasks.c:2548: error: pxTimeOut' undeclared (first use in this function)
..tasks.c: At top level:
..tasks.c:2554: error: syntax error before '' token
..tasks.c:2555: error: xTaskCheckForTimeOut' declared as function returning a function
..\tasks.c: In function xTaskCheckForTimeOut':
..tasks.c:2558: error: pxTimeOut' undeclared (first use in this function)
..\tasks.c:2559: error: pxTicksToWait' undeclared (first use in this function)
..tasks.c:2564: error: syntax error before "xConstTickCount"
..tasks.c:2570: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2589: warning: type defaults to int' in declaration of vTaskSetTimeOutState'
..tasks.c:2589: warning: parameter names (without types) in function declaration
..tasks.c:2589: error: conflicting types for 'vTaskSetTimeOutState'
..tasks.c:2547: error: previous definition of 'vTaskSetTimeOutState' was here
..tasks.c:2589: warning: data definition has no type or storage class
..tasks.c:2590: warning: type defaults to int' in declaration of xReturn'
..tasks.c:2590: error: redefinition of 'xReturn'
..tasks.c:706: error: previous definition of 'xReturn' was here
..tasks.c:2590: error: 'xReturn' redeclared as different kind of symbol
..tasks.c:2556: error: previous declaration of 'xReturn' was here
..tasks.c:2590: error: cast specifies function type
..tasks.c:2590: warning: data definition has no type or storage class
..tasks.c:2591: error: syntax error before '}' token
..tasks.c:2597: warning: type defaults to int' in declaration of vPortExitCritical'
..tasks.c:2597: warning: data definition has no type or storage class
..tasks.c:2599: error: syntax error before "return"
..tasks.c: In function vTaskMissedYield':
..\tasks.c:2605: error: cast specifies function type
..\tasks.c: At top level:
..\tasks.c:2611: error: syntax error before "uxTaskGetTaskNumber"
..\tasks.c:2612: warning: return type defaults to int'
..tasks.c: In function uxTaskGetTaskNumber':
..\tasks.c:2613: error: syntax error before "uxReturn"
..\tasks.c:2614: error: pxTCB' undeclared (first use in this function)
..tasks.c:2618: error: syntax error before ')' token
..tasks.c:2619: error: uxReturn' undeclared (first use in this function)
..\tasks.c: At top level:
..\tasks.c:2634: warning: type defaults to int' in declaration of UBaseType_t'
..\tasks.c:2634: error: syntax error before "uxHandle"
..\tasks.c: In function vTaskSetTaskNumber':
..tasks.c:2636: error: pxTCB' undeclared (first use in this function)
..\tasks.c:2638: error: xTask' undeclared (first use in this function)
..tasks.c:2640: error: syntax error before ')' token
..tasks.c:2641: error: uxHandle' undeclared (first use in this function)
..\tasks.c: In function prvIdleTask':
..tasks.c:2689: error: syntax error before numeric constant
..tasks.c:2689: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2701: error: syntax error before '{' token
..tasks.c:2709: warning: type defaults to int' in declaration of vApplicationIdleHook'
..tasks.c:2709: warning: data definition has no type or storage class
..tasks.c:2710: error: syntax error before '}' token
..tasks.c:2805: error: syntax error before '*' token
..tasks.c: In function prvInitialiseTCBVariables':
..\tasks.c:2807: error: syntax error before "x"
..\tasks.c:2810: error: x' undeclared (first use in this function)
..tasks.c:2810: error: syntax error before numeric constant
..tasks.c:2810: error: syntax error before ')' token
..tasks.c:2817: error: pcName' undeclared (first use in this function)
..\tasks.c:2819: error: break statement not within loop or switch
..\tasks.c: At top level:
..\tasks.c:2829: error: syntax error before '->' token
..\tasks.c:2850: error: syntax error before '&' token
..\tasks.c:2851: error: syntax error before '&' token
..\tasks.c:2855: error: syntax error before '&' token
..\tasks.c:2858: error: syntax error before '&' token
..\tasks.c:2859: error: syntax error before '&' token
..\tasks.c: In function prvInitialiseTaskLists':
..tasks.c:2971: error: syntax error before "uxPriority"
..tasks.c:2973: error: syntax error before numeric constant
..tasks.c:2973: error: syntax error before ')' token
..tasks.c: At top level:
..tasks.c:2978: error: syntax error before '&' token
..tasks.c:2978: warning: type defaults to int' in declaration of vListInitialise'
..tasks.c:2978: error: conflicting types for 'vListInitialise'
..list.h:386: error: previous declaration of 'vListInitialise' was here
..tasks.c:2978: error: conflicting types for 'vListInitialise'
..list.h:386: error: previous declaration of 'vListInitialise' was here
..tasks.c:2978: warning: data definition has no type or storage class
..tasks.c:2979: error: syntax error before '&' token
..tasks.c:2979: warning: type defaults to int' in declaration of vListInitialise'
..tasks.c:2979: warning: data definition has no type or storage class
..tasks.c:2980: error: syntax error before '&' token
..tasks.c:2980: warning: type defaults to int' in declaration of vListInitialise'
..tasks.c:2980: warning: data definition has no type or storage class
..tasks.c:2996: warning: type defaults to int' in declaration of pxDelayedTaskList'
..tasks.c:2996: error: conflicting types for 'pxDelayedTaskList'
..tasks.c:218: error: previous declaration of 'pxDelayedTaskList' was here
..tasks.c:2996: warning: initialization makes integer from pointer without a cast
..tasks.c:2996: warning: data definition has no type or storage class
..tasks.c:2997: warning: type defaults to int' in declaration of pxOverflowDelayedTaskList'
..tasks.c:2997: error: conflicting types for 'pxOverflowDelayedTaskList'
..tasks.c:219: error: previous declaration of 'pxOverflowDelayedTaskList' was here
..tasks.c:2997: warning: initialization makes integer from pointer without a cast
..tasks.c:2997: warning: data definition has no type or storage class
..tasks.c:2998: error: syntax error before '}' token
..tasks.c: In function prvCheckTasksWaitingTermination':
..\tasks.c:3009: error: syntax error before numeric constant
..\tasks.c:3013: error: request for member uxNumberOfItems' in something not a structure or union
..tasks.c:3013: error: syntax error before numeric constant
..tasks.c:3017: error: cast specifies function type
..tasks.c:3019: error: pxTCB' undeclared (first use in this function)
..\tasks.c:3023: error: syntax error before ')' token
..\tasks.c:3023: error: request for member xListEnd' in something not a structure or union
..tasks.c: At top level:
..tasks.c:3039: error: syntax error before '}' token
..tasks.c:3042: warning: type defaults to int' in declaration of TickTypet'
..tasks.c:3042: error: syntax error before "xTimeToWake"
..tasks.c:3043: error: conflicting types for 'prvAddCurrentTaskToDelayedList'
..tasks.c:2427: error: previous declaration of 'prvAddCurrentTaskToDelayedList' was here
..tasks.c:3043: error: conflicting types for 'prvAddCurrentTaskToDelayedList'
..tasks.c:2427: error: previous declaration of 'prvAddCurrentTaskToDelayedList' was here
..tasks.c: In function prvAddCurrentTaskToDelayedList':
..\tasks.c:3045: error: request for member xGenericListItem' in something not a structure or union
..tasks.c:3050: error: request for member xGenericListItem' in something not a structure or union
..\tasks.c:3055: error: request for member xGenericListItem' in something not a structure or union
..tasks.c: At top level:
..tasks.c:3072: error: syntax error before '' token
..tasks.c:3072: error: syntax error before "StackTypet"
..tasks.c:3073: warning: return type defaults to int'
..\tasks.c: In function prvAllocateTCBAndStack':
..tasks.c:3074: error: pxNewTCB' undeclared (first use in this function)
..\tasks.c:3102: error: StackTypet' undeclared (first use in this function)
..tasks.c:3105: error: syntax error before ')' token
..tasks.c:3105: error: usStackDepth' undeclared (first use in this function)
..\tasks.c:3111: error: syntax error before ')' token
..\tasks.c: At top level:
..\tasks.c:3149: error: syntax error before "prvListTaskWithinSingleList"
..\tasks.c:3149: error: syntax error before '*' token
..\tasks.c:3150: warning: return type defaults to int'
..tasks.c: In function prvListTaskWithinSingleList':
..\tasks.c:3151: error: syntax error before '*' token
..\tasks.c:3154: error: pxList' undeclared (first use in this function)
..tasks.c:3154: error: syntax error before numeric constant
..tasks.c:3156: error: pxConstList' undeclared (first use in this function)
..\tasks.c:3156: error: pxFirstTCB' undeclared (first use in this function)
..tasks.c: At top level:
..tasks.c:3162: error: syntax error before "do"
..tasks.c:3164: error: syntax error before '->' token
..tasks.c:3164: warning: type defaults to int' in declaration of pxNextTCB'
..tasks.c:3164: error: pxConstList' undeclared here (not in a function)
..\tasks.c:3164: warning: data definition has no type or storage class
..\tasks.c:3164: error: syntax error before '}' token
..\tasks.c:3166: error: uxTask' undeclared here (not in a function)
..tasks.c:3166: error: syntax error before '.' token
..tasks.c:3167: error: syntax error before '.' token
..tasks.c:3168: error: syntax error before '.' token
..tasks.c:3169: error: syntax error before '.' token
..tasks.c:3170: error: syntax error before '.' token
..tasks.c: In function prvTaskCheckFreeStackSpace':
..\tasks.c:3244: error: StackType_t' undeclared (first use in this function)
..tasks.c: At top level:
..tasks.c:3254: error: syntax error before "uxTaskGetStackHighWaterMark"
..tasks.c:3255: warning: return type defaults to int'
..\tasks.c: In function uxTaskGetStackHighWaterMark':
..tasks.c:3256: error: pxTCB' undeclared (first use in this function)
..\tasks.c:3258: error: syntax error before "uxReturn"
..\tasks.c:3260: error: syntax error before ')' token
..\tasks.c:3260: error: syntax error before ')' token
..\tasks.c:3272: error: uxReturn' undeclared (first use in this function)
..tasks.c:3272: error: syntax error before "prvTaskCheckFreeStackSpace"
..tasks.c: At top level:
..tasks.c:3282: error: syntax error before '' token
..tasks.c: In function prvDeleteTCB':
..\tasks.c:3287: error: pxTCB' undeclared (first use in this function)
..tasks.c: In function prvResetNextTaskUnblockTime':
..\tasks.c:3320: error: pxTCB' undeclared (first use in this function)
..tasks.c:3322: error: invalid type argument of ->'
..\tasks.c:3322: error: syntax error before numeric constant
..\tasks.c:3322: error: cast specifies function type
..\tasks.c:3328: error: syntax error before numeric constant
..\tasks.c:3336: error: syntax error before ')' token
..\tasks.c:3336: error: invalid type argument of ->'
..tasks.c: At top level:
..tasks.c:3362: error: xTaskGetSchedulerState' declared as function returning a function
..\tasks.c: In function xTaskGetSchedulerState':
..tasks.c:3365: error: cast specifies function type
..tasks.c:3367: error: cast specifies function type
..tasks.c:3371: error: cast specifies function type
..tasks.c:3373: error: cast specifies function type
..tasks.c:3377: error: cast specifies function type
..tasks.c:3381: warning: return makes integer from pointer without a cast
..tasks.c: In function vTaskPriorityInherit':
..\tasks.c:3391: error: syntax error before "const"
..\tasks.c:3400: error: pxTCB' undeclared (first use in this function)
..tasks.c:3400: error: request for member uxPriority' in something not a structure or union
..\tasks.c:3407: error: syntax error before "pxCurrentTCB"
..\tasks.c:3416: error: cast specifies function type
..\tasks.c:3418: error: syntax error before numeric constant
..\tasks.c:3428: error: request for member uxPriority' in something not a structure or union
..tasks.c: At top level:
..tasks.c:3431: error: syntax error before "else"
..tasks.c:3437: error: syntax error before '(' token
..tasks.c:3437: error: syntax error before '(' token
..tasks.c:3438: error: syntax error before '}' token
..tasks.c:3456: error: xTaskPriorityDisinherit' declared as function returning a function
..\tasks.c: In function xTaskPriorityDisinherit':
..tasks.c:3457: error: syntax error before "const"
..tasks.c:3458: error: function xReturn' is initialized like a variable
..\tasks.c:3458: error: cast specifies function type
..\tasks.c:3466: error: pxTCB' undeclared (first use in this function)
..tasks.c:3476: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:3487: error: syntax error before "else"
..tasks.c:3494: error: syntax error before '(' token
..tasks.c:3494: error: syntax error before '(' token
..tasks.c:3495: error: syntax error before '->' token
..tasks.c:3500: error: syntax error before '&' token
..tasks.c:3501: error: syntax error before '(' token
..tasks.c:3501: error: syntax error before '(' token
..tasks.c:3501: error: syntax error before '&' token
..tasks.c:3511: warning: type defaults to int' in declaration of xReturn'
..tasks.c:3511: error: redefinition of 'xReturn'
..tasks.c:2590: error: previous definition of 'xReturn' was here
..tasks.c:3511: error: 'xReturn' redeclared as different kind of symbol
..tasks.c:3458: error: previous declaration of 'xReturn' was here
..tasks.c:3511: error: cast specifies function type
..tasks.c:3511: warning: data definition has no type or storage class
..tasks.c:3512: error: syntax error before '}' token
..tasks.c: In function prvWriteNameToBuffer':
..\tasks.c:3609: error: invalid lvalue in assignment
..\tasks.c:3609: warning: comparison between pointer and integer
..\tasks.c:3609: error: wrong type argument to increment
..\tasks.c:3611: error: array subscript is not an integer
..\tasks.c:3615: error: array subscript is not an integer
..\tasks.c:3618: error: array subscript is not an integer
..\tasks.c: In function vTaskList':
..tasks.c:3628: error: pxTaskStatusArray' undeclared (first use in this function)
..\tasks.c:3629: error: syntax error before "uxArraySize"
..\tasks.c:3662: error: uxArraySize' undeclared (first use in this function)
..tasks.c:3673: error: x' undeclared (first use in this function)
..\tasks.c: In function vTaskGetRunTimeStats':
..tasks.c:3720: error: pxTaskStatusArray' undeclared (first use in this function)
..\tasks.c:3721: error: syntax error before "uxArraySize"
..\tasks.c:3760: error: uxArraySize' undeclared (first use in this function)
..tasks.c:3777: error: x' undeclared (first use in this function)
..\tasks.c: At top level:
..\tasks.c:3840: error: syntax error before "uxTaskResetEventItemValue"
..\tasks.c:3841: warning: return type defaults to int'
..tasks.c: In function uxTaskResetEventItemValue':
..\tasks.c:3842: error: syntax error before "uxReturn"
..\tasks.c:3844: error: uxReturn' undeclared (first use in this function)
..tasks.c:3844: error: request for member xEventListItem' in something not a structure or union
..\tasks.c:3848: error: request for member xEventListItem' in something not a structure or union
..tasks.c:3848: error: syntax error before "pxCurrentTCB"
..tasks.c: In function pvTaskIncrementMutexHeldCount':
..\tasks.c:3862: error: request for member uxMutexesHeld' in something not a structure or union
..tasks.c: At top level:
..tasks.c:3873: error: syntax error before "TickTypet"
..tasks.c: In function ulTaskNotifyTake':
..\tasks.c:3875: error: syntax error before "xTimeToWake"
..\tasks.c:3881: error: request for member ulNotifiedValue' in something not a structure or union
..tasks.c:3884: error: request for member eNotifyState' in something not a structure or union
..\tasks.c:3886: error: syntax error before numeric constant
..\tasks.c:3904: error: syntax error before numeric constant
..\tasks.c:3876: warning: unused variable ulReturn'
..tasks.c: At top level:
..tasks.c:3937: warning: type defaults to int' in declaration of vPortYieldFromISR'
..tasks.c:3937: warning: data definition has no type or storage class
..tasks.c:3938: error: syntax error before '}' token
..tasks.c:3949: warning: type defaults to int' in declaration of vPortExitCritical'
..tasks.c:3949: warning: data definition has no type or storage class
..tasks.c:3951: warning: type defaults to int' in declaration of vPortEnterCritical'
..tasks.c:3951: warning: data definition has no type or storage class
..tasks.c:3952: error: syntax error before '{' token
..tasks.c:3973: warning: type defaults to int' in declaration of vPortExitCritical'
..tasks.c:3973: warning: data definition has no type or storage class
..tasks.c:3975: error: syntax error before "return"
..tasks.c:3983: error: syntax error before "TickTypet"
..tasks.c:3984: error: xTaskNotifyWait' declared as function returning a function
..\tasks.c: In function xTaskNotifyWait':
..tasks.c:3985: error: syntax error before "xTimeToWake"
..tasks.c:3991: error: request for member eNotifyState' in something not a structure or union
..\tasks.c:3996: error: request for member ulNotifiedValue' in something not a structure or union
..tasks.c:3996: error: ulBitsToClearOnEntry' undeclared (first use in this function)
..\tasks.c:3999: error: request for member eNotifyState' in something not a structure or union
..tasks.c:4001: error: syntax error before numeric constant
..tasks.c:4019: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:4052: warning: type defaults to int' in declaration of vPortYieldFromISR'
..tasks.c:4052: warning: data definition has no type or storage class
..tasks.c:4053: error: syntax error before '}' token
..tasks.c:4064: warning: type defaults to int' in declaration of vPortExitCritical'
..tasks.c:4064: warning: data definition has no type or storage class
..tasks.c:4066: warning: type defaults to int' in declaration of vPortEnterCritical'
..tasks.c:4066: warning: data definition has no type or storage class
..tasks.c:4067: error: syntax error before '{' token
..tasks.c:4089: warning: type defaults to int' in declaration of xReturn'
..tasks.c:4089: error: redefinition of 'xReturn'
..tasks.c:3511: error: previous definition of 'xReturn' was here
..tasks.c:4089: error: 'xReturn' redeclared as different kind of symbol
..tasks.c:3986: error: previous declaration of 'xReturn' was here
..tasks.c:4089: error: cast specifies function type
..tasks.c:4089: warning: data definition has no type or storage class
..tasks.c:4090: error: syntax error before '}' token
..tasks.c:4094: warning: type defaults to int' in declaration of vPortExitCritical'
..tasks.c:4094: warning: data definition has no type or storage class
..tasks.c:4096: error: syntax error before "return"
..tasks.c:4105: error: xTaskGenericNotify' declared as function returning a function
..\tasks.c: In function xTaskGenericNotify':
..tasks.c:4106: error: pxTCB' undeclared (first use in this function)
..\tasks.c:4108: error: function xReturn' is initialized like a variable
..tasks.c:4108: error: cast specifies function type
..tasks.c:4111: error: syntax error before ')' token
..tasks.c:4146: error: cast specifies function type
..tasks.c:4167: error: request for member uxPriority' in something not a structure or union
..\tasks.c:4185: warning: return makes integer from pointer without a cast
..\tasks.c: At top level:
..\tasks.c:4194: error: xTaskNotifyFromISR' declared as function returning a function
..tasks.c: In function xTaskNotifyFromISR':
..\tasks.c:4195: error: pxTCB' undeclared (first use in this function)
..tasks.c:4197: error: function xReturn' is initialized like a variable
..\tasks.c:4197: error: cast specifies function type
..\tasks.c:4198: error: syntax error before "uxSavedInterruptStatus"
..\tasks.c:4220: error: syntax error before ')' token
..\tasks.c:4222: error: uxSavedInterruptStatus' undeclared (first use in this function)
..tasks.c:4222: error: configMAX_SYSCALL_INTERRUPT_PRIORITY' undeclared (first use in this function)
..\tasks.c:4250: error: cast specifies function type
..\tasks.c:4268: error: cast specifies function type
..\tasks.c:4280: error: request for member uxPriority' in something not a structure or union
..tasks.c:4286: error: cast specifies function type
..tasks.c:4297: warning: return makes integer from pointer without a cast
..tasks.c:4222: error: unknown register name r0' in asm'
..tasks.c:4295: error: unknown register name r0' in asm'
..tasks.c: In function vTaskNotifyGiveFromISR':
..\tasks.c:4307: error: pxTCB' undeclared (first use in this function)
..tasks.c:4309: error: syntax error before "uxSavedInterruptStatus"
..tasks.c:4331: error: syntax error before ')' token
..tasks.c:4333: error: uxSavedInterruptStatus' undeclared (first use in this function)
..\tasks.c:4333: error: configMAXSYSCALLINTERRUPT_PRIORITY' undeclared (first use in this function)
..tasks.c:4349: error: cast specifies function type
..tasks.c:4361: error: request for member uxPriority' in something not a structure or union
..\tasks.c:4367: error: cast specifies function type
..\tasks.c:4333: error: unknown register name r0' in asm'
..\tasks.c:4376: error: unknown register name r0' in asm'
..\tasks.c: At top level:
..\list.h:210: error: storage size of xListEnd' isn't known
..tasks.c:143: error: storage size of xGenericListItem' isn't known
..\tasks.c:144: error: storage size of xEventListItem' isn't known
..tasks.c:245: warning: 'xSchedulerRunning' declared static' but never defined
..\tasks.c:247: warning: 'xYieldPending' declared static' but never defined
..tasks.c:248: warning: 'xNumOfOverflows' declared static' but never defined
..\tasks.c:2970: warning: 'prvInitialiseTaskLists' defined but not used
..\tasks.c:486: warning: 'prvAddCurrentTaskToDelayedList' declared static' but never defined
..tasks.c:3235: warning: 'prvTaskCheckFreeStackSpace' defined but not used
15:34:12 Build Finished (took 1s.871ms)
Following errors and warnings that i'm getting
Attachmentsms_rtos.JPG (237539 bytes) ms_rtos_2.JPG (43069 bytes)
fatal error: freeRTOS.h: No such file or directoryPosted by rtel on June 1, 2015 Difficult to say what is wrong here - but it still looks like an include file problem. As you don't have a "could not find header file" type error could it be you are including the wrong portmacro.h file?
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|