Содержание
- FreeRTOS — file or library not found #5738
- Comments
- Hardware:
- Description:
- Sketch: (leave the backquotes for code formatting)
- Debug Messages:
- Ошибка при компиляции для платы arduino uno что делать?
- Fatal error freertos h no such file or directory cubeide
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- Re: Unable to find include files in freertos folder
- [Решено] freeRTOS, не получается скомпилировать пустой код.
- Fatal error when trying to include FreeRTOSConfig.h: No such file or directory #1423
- Comments
- Hardware:
- Description:
FreeRTOS — file or library not found #5738
Hi, I’m having difficulties compiling Grbl Esp32/bdring onto a Wemos D1R32.
I’ve followed various ‘methods’ on Youtube and keep getting errors, the one holding things up now is the one regarding FreeRTOS:
ResolveLibrary:(FreeRTOS.h)1_Esp32-mainGrbl_Esp32srcI2SOut.cpp:54:22: fatal error: FreeRTOS.h No such file or directory.
I’ve created and downloaded my own FreeRTOS.h files and placed them in the folder along with Config.h etc but keep getting this error.
Can someone steer me right please?
—————————— Remove above ——————————
Hardware:
| Board | ESP32 Dev Module | node32 | ttgo_lora | ESP32-S2-Saola | Custom w/ ESP32-S2-WROVER 16MB |
| Version/Date | 1.0.4 | 2.0.0 | 0badbeef | 11/jul/2017 | today’s master |
| IDE name | Arduino IDE | Atom + Platform.io | IDF component | VSCode | |
| Flash Frequency | 40Mhz | 80Mhz | |||
| PSRAM enabled | yes | no | |||
| Upload Speed | 115200 | ||||
| Computer OS | Windows 10 | Mac OSX | Ubuntu |
Description:
Describe your problem here
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered:
Источник
Ошибка при компиляции для платы arduino uno что делать?
Нашел я код и хотел использовать его в дипломном проекте, но при компиляции он выдает ошибку такую ошибку
Несколько библиотек найдено для «WiFiClientSecure.h»
In file included from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFiGeneric.h:27:0,
Используется: C:Program Files (x86)ArduinolibrariesWiFiClientSecure
from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFiSTA.h:28,
Не используется: C:Program Files (x86)ArduinolibrariesESP8266WiFi
from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFi.h:32,
from C:Program Files (x86)ArduinolibrariesWiFiClientSecuresrc/WiFiClientSecure.h:25,
C:Program Files (x86)ArduinolibrariesWiFisrc/esp_event.h:12:10: fatal error: freertos/FreeRTOS.h: No such file or directory
Ошибка компиляции для платы Arduino Uno.
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»
- Вопрос задан 10 апр. 2022
- 410 просмотров
Простой 2 комментария
C:Program Files (x86)ArduinolibrariesWiFisrc/esp_event.h:12:10: fatal error: freertos/FreeRTOS.h: No such file or directory
kalapanga,
Ну, он хотя бы пытается. Да, балбес. Но не безнадёжный. Делает первые шаги. Ну хоть так.
drakewurm1,
Посмотри в заголовке файла, там указано, для каких платформ скетч (esp8266 и esp32). Они как-бы совместимы в некоторой степени с arduino, но в очень отдалённой. Ну, т.е. в них можно так же как в ардуино «закачать код» и они «помигают лампочками». Но код несколько другой.
В ардуинке обычно нет встроенного wifi, а esp-шки это фактически wifi-модули, которые ещё и вашу программу могут исполнять.
Так что вы пытаетесь заставить утюг показывать мультики. Не получится :/
Источник
Fatal error freertos h no such file or directory cubeide
Post by ashigupta9 » Wed Dec 18, 2019 5:40 pm
In my application i am including freertos files like this #include»freertos/FreeRTOSConfig.h» and this works however if i add only FreeRTOSConfig.h i get a fatal error » FreeRTOS.h: No such file or directory».
Is there any solution of how i can do this.
Re: Unable to find include files in freertos folder
Post by drmacro » Wed Dec 18, 2019 5:48 pm
Ah, I might be wrong. but, that may be a feature added with FreeRTOS 9.x and above.
ESP-IDF is based on FreeRTOS 8.x
Re: Unable to find include files in freertos folder
Post by PeterR » Wed Dec 18, 2019 6:16 pm
I am not sure why having to add the «freertos» in «freertos/FreeRTOSConfig.h» is a problem.
Anyway if it does offend then use «COMPONENT_ADD_INCLUDEDIRS» and point directly at the «freertos» directory.
The problem now is that your project build file will probably now be locked to a specific ESP-IDF (guessing), so I would «suck it in».
There may be a project setting as well.
Re: Unable to find include files in freertos folder
Post by drmacro » Wed Dec 18, 2019 6:35 pm
Adding «freertos/» in front does work and is apparent in many examples.
But, my confusion stems from yesterday. I swear I looked for that file because I wanted to use to set
configUSE_DAEMON_USE_TASK_STARTUP_HOOK
And I couldn’t find the file FreeRTOSConfig.h. But, today it’s there.
Clarifying my previous comment:
But, it doesn’t have configUSE_DAEMON_USE_TASK_STARTUP_HOOK because the daemon hook was added in FreeRTOS 9.x and above.
Re: Unable to find include files in freertos folder
Post by PeterR » Wed Dec 18, 2019 7:00 pm
But, my confusion stems from yesterday. I swear I looked for that file because I wanted to use to set
configUSE_DAEMON_USE_TASK_STARTUP_HOOK
And I couldn’t find the file FreeRTOSConfig.h. But, today it’s there.
Sorry, no idea what you mean. I had thought that you had an include path issue but ATM I do not understand your problem report.
PS May I suggest that you use nouns rather than pronouns? It does seem odd when you type but it is the best approach and makes it so much easier to help!
Re: Unable to find include files in freertos folder
Post by drmacro » Wed Dec 18, 2019 7:40 pm
But, my confusion stems from yesterday. I swear I looked for that file because I wanted to use to set
configUSE_DAEMON_USE_TASK_STARTUP_HOOK
And I couldn’t find the file FreeRTOSConfig.h. But, today it’s there.
Sorry, no idea what you mean. I had thought that you had an include path issue but ATM I do not understand your problem report.
PS May I suggest that you use nouns rather than pronouns? It does seem odd when you type but it is the best approach and makes it so much easier to help!
But, the #define is not in the file because the hook is not in the revision of FreeRTOS that ESP-IDF uses. (At least that is my understanding.)
As for nouns versus pronouns. I have no idea what you mean.
Re: Unable to find include files in freertos folder
Post by PeterR » Wed Dec 18, 2019 8:21 pm
«in the file» : pronoun — I ask which file?
«in the specific file that I want — freertos.h» : noun (freertos.h) — you see how that helps?
Sorry, I just don’t understand how you get from
Re: Unable to find include files in freertos folder
Post by drmacro » Wed Dec 18, 2019 8:55 pm
The confusion is all my fault.
I stumbled on the relative directory «fix» (i.e. «freertos/FreeRTOSConfig.h») when looking for the file for an issue totally unrelated to the original post of this thread.
The unrelated issue (the use of the startup hook) was mixed into this thread, by me, attempting to explain why I had made the post about having the problem yesterday. (That is I tried on my system to search for the file, in the file browser and with ‘find’ on the command line and could not find the file. Yet today I did find it.)
So, I mixed things up.
The original post IS about a file not found issue that is corrected by using the relative directory.
I’m sorry I muddied the water.
Re: Unable to find include files in freertos folder
Post by PeterR » Wed Dec 18, 2019 9:00 pm
Np, you are in good company! I have muddied many a post
For my own benefit I would ask the OP to restate the problem in categorical terms.
Источник
[Решено] freeRTOS, не получается скомпилировать пустой код.
@aveal да не) у меня есть кубмх и куб иде. через куб иде получилось завести ртос, пусть и прописыванием всех папок вручную. как происходит: выбираешь плату, ставишь НЕ systick, указываешь в мидлвайр фриртос, активируешь пины какие надо, отладку по сериал вайр, жмакаешь шестеренку -> генерится код, прописываешь папки с фриртосом вручную, удалаяешь core/src/system_stm32xx.c (или как то так), пишешь какой-нибудь блинк и заливаешь на плату. все норм, потоки работают, диоды моргают. это все касается только одного куба иде, мх не запускаю вообще.
а если открыть мх и попробовать сгенерить код через него (по сути тоже самое), то он виснет после «жмаканья шестеренки» на том моменте, который я скинул скриншотом. при этом, если сконфигурировать код без фриртоса, как просто обычное однопоточное приложение, то сборка проходит до конца и потом предлагает перейти в куб иде чтоб продолжить работать со сгенерированным кодом. надеюсь понятно объяснил)
кажется я понял.
@andrej-garazh как раз хотел порекомендовать путь упростить и без русских символов попробовать )
@aveal вчера искал и не нашел, а сегодня успех)
скомпилилось с первого раза
@andrej-garazh рад, что все получилось в итоге)
Здравствуйте. У меня та же проблема — сначала ругался ”fatal error: FreeRTOS.h: No such file or directory» — тогда я добавил 3 пути и эта ругань пропала.
После этого появилось много ошибок, смысл которых в переопределении. Вот первая часть сообщения первой из ошибок: «102: multiple definition of `SystemCoreClock’». Присутствуют такие же ошибки по AHBPrescTable, SystemInit, SystemCoreClockUpdate и т.д.
У меня в имени пользователя есть Кириллица, поэтому я переместил репозиторий в папку без Кирилицы
Это не помогло и тогда пересоздал проект заново и ошибки пропали. Видимо в старом проекте были ссылки на прежний репозиторий.
Но появились ошибки «section `._user_heap_stack’ will not fit in region `RAM’» и «`RAM’ overflowed by 248 bytes». Не подскажите что с ними делать? У меня плата Nucleo STM32F030R8
Источник
Fatal error when trying to include FreeRTOSConfig.h: No such file or directory #1423
Hardware:
Board: DOIT ESP32 DEVKIT V1
Core Installation/update date: Manual installation with zip file from github on 23/03/2018
IDE name: Arduino IDE 1.8.5.
Flash Frequency: 80Mhz
Upload Speed: 921600
Description:
I want to use the lightweight µGFX library which supports FreeRTOS to build simple GUI applications, see https://ugfx.io/.
Some of the µGFX library files header files such as FreeRTOS.config.h, semphr.de. Compiling the sketch and the library gives a fatal error: «FreeRTOSConfig.h: No such file or directory».
Looking into platform.txt line 25, this path is included: «-I/include/freertos». The mentioned directory is empty and has only one subfolder «freertos» with all the necessary file.
I could make the sketch/library get compiled by copying all the files from «/include/freertos/freertos» to «/include/freertos».
However, the µGFX library isn’t outputting anything. So this ticket is starter to figure out what might be the cause for this. Am I using the FreeRTOS system wrong? Or is the µGFX library broken?
Why can’t the µGFX library just simply include «FreeRTOSConfig.h»? I read somewhere, that this files get dynamically created? But what about the other includes such as semphr.h?
The text was updated successfully, but these errors were encountered:
Источник
|
||||
NOTE:This is a read only archive of threads posted to the FreeRTOS support forum. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.
FreeRTOS Support Archive
The FreeRTOS support forum can be used for active support both from Amazon Web Services and the community. In return for using our software for free, we request you play fair and do your bit to help others! Sign up for an account and 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. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.
[FreeRTOS Home]
[Live FreeRTOS Forum]
[FAQ]
[Archive Top]
[May 2015 Threads]
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 directory
Posted 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>includeFreeRTOS.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 directory
Posted 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 directory
Posted 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 directory
Posted 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 directory
Posted 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 directory
Posted 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 directory
Posted 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 directory
Posted by mahendra12345 on May 5, 2015
Hopefully waiting for answer………… 🙂
fatal error: freeRTOS.h: No such file or directory
Posted 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 directory
Posted 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':vTaskDelay’
../scr/ms.c:17: warning: implicit declaration of function
../scr/ms.c: In function main':xTaskCreate’
../scr/ms.c:23: warning: implicit declaration of function
../scr/ms.c:23: warning: implicit declaration of function STACK_BYTES'vTaskStartScheduler’
../scr/ms.c:24: warning: implicit declaration of function
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 directory
Posted 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 directory
Posted 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 directory
Posted 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 directory
Posted 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:UsersLENOVOworkspacemsRTOS” “-IC:FreeRTOSV8.2.1FreeRTOSSource” “-IC:FreeRTOSV8.2.1FreeRTOSSourceinclude” -O0 -g3 -Wall -c -fmessage-length=0 -o “scrms.o” “..scrms.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 ofpxPortInitialiseStack’
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 ofxPortStartScheduler’
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
fatal error: freeRTOS.h: No such file or directory
Posted 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 directory
Posted 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'uxTaskGetSystemState’:
..tasks.c: In function
..tasks.c:1836: error: syntax error before “uxTask”
..tasks.c:1841: error: uxArraySize' undeclared (first use in this function)uxQueue’ undeclared (first use in this function)
..tasks.c:1847: error:
..tasks.c:1848: error: uxTask' undeclared (first use in this function)pxTaskStatusArray’ undeclared (first use in this function)
..tasks.c:1848: error:
..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)xTaskIncrementTick’ declared as function returning a function
..tasks.c: At top level:
..tasks.c:1939: error:
..tasks.c: In function xTaskIncrementTick':pxTCB’ undeclared (first use in this function)
..tasks.c:1940: error:
..tasks.c:1941: error: syntax error before “xItemValue”
..tasks.c:1942: error: function xSwitchRequired' is initialized like a variablexConstTickCount’ undeclared (first use in this function)
..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:
..tasks.c:1959: error: syntax error before numeric constant
..tasks.c:1961: error: request for member uxNumberOfItems' in something not a structure or unionpxTemp’ undeclared (first use in this function)
..tasks.c:1961: error: syntax error before numeric constant
..tasks.c:1961: error:
..tasks.c:1961: error: wrong type argument to increment
..tasks.c:1976: error: request for member uxNumberOfItems' in something not a structure or unionxListEnd’ 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
..tasks.c:1993: error: xItemValue' undeclared (first use in this function)uxPriority’ in something not a structure or union
..tasks.c:2036: error: request for member
..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 “TaskHookFunction_t”
..tasks.c: In function vTaskSetApplicationTaskTag':xTCB’ undeclared (first use in this function)
..tasks.c:2116: error:
..tasks.c:2120: error: xTask' undeclared (first use in this function)pxHookFunction’ 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:
..tasks.c: At top level:
..tasks.c:2141: error: syntax error before “xTaskGetApplicationTaskTag”
..tasks.c:2142: warning: return type defaults to int'xTaskGetApplicationTaskTag’:
..tasks.c: In function
..tasks.c:2143: error: xTCB' undeclared (first use in this function)TaskHookFunction_t’ undeclared (first use in this function)
..tasks.c:2144: error:
..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 functionxTaskCallApplicationTaskHook’:
..tasks.c: In function
..tasks.c:2174: error: xTCB' undeclared (first use in this function)vTaskSwitchContext’:
..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
..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 unionportGET_HIGHEST_PRIORITY’
..tasks.c:2248: error: syntax error before "uxTopPriority"
..tasks.c:2248: warning: implicit declaration of function
..tasks.c:2248: error: uxTopPriority' undeclared (first use in this function)pxConstList’ undeclared (first use in this function)
..tasks.c:2248: error: syntax error before "const"
..tasks.c:2248: error:
..tasks.c: At top level:
..tasks.c:2262: error: syntax error before ‘‘ token
..tasks.c: In function vTaskPlaceOnEventList':pxEventList’ undeclared (first use in this function)
..tasks.c:2264: error: syntax error before "xTimeToWake"
..tasks.c:2266: error:
..tasks.c:2275: error: request for member xEventListItem' in something not a structure or unionxGenericListItem’ in something not a structure or union
..tasks.c:2280: error: request for member
..tasks.c:2280: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2306: warning: type defaults to int' in declaration ofprvAddCurrentTaskToDelayedList’
..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':pxEventList’ undeclared (first use in this function)
..tasks.c:2323: error: syntax error before "xTimeToWake"
..tasks.c:2325: error:
..tasks.c:2334: error: request for member xEventListItem' in something not a structure or unionxItemValue’ undeclared (first use in this function)
..tasks.c:2334: error:
..tasks.c:2341: error: request for member xEventListItem' in something not a structure or unionxGenericListItem’ in something not a structure or union
..tasks.c:2346: error: request for member
..tasks.c:2346: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2372: warning: type defaults to int' in declaration ofprvAddCurrentTaskToDelayedList’
..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':pxEventList’ undeclared (first use in this function)
..tasks.c:2391: error: syntax error before "xTimeToWake"
..tasks.c:2393: error:
..tasks.c:2405: error: request for member xEventListItem' in something not a structure or unionxGenericListItem’ in something not a structure or union
..tasks.c:2411: error: request for member
..tasks.c:2411: error: syntax error before numeric constant
..tasks.c: At top level:
..tasks.c:2424: warning: type defaults to int' in declaration ofxTimeToWake’
..tasks.c:2424: error: xTicksToWait' undeclared here (not in a function)int’ in declaration of
..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 toprvAddCurrentTaskToDelayedList'int’ in declaration of
..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 toList_t'xTaskRemoveFromEventList’ declared as function returning a function
..tasks.c:2433: error: syntax error before '*' token
..tasks.c:2434: error:
..tasks.c: In function xTaskRemoveFromEventList':pxUnblockedTCB’ undeclared (first use in this function)
..tasks.c:2435: error:
..tasks.c:2451: error: syntax error before ‘)’ token
..tasks.c:2451: error: pxEventList' undeclared (first use in this function)uxPriority’ in something not a structure or union
..tasks.c:2455: error: cast specifies function type
..tasks.c:2467: error: request for member
..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 ofTickTypet’
..tasks.c:2501: error: syntax error before “xItemValue”
..tasks.c:2502: error: xTaskRemoveFromUnorderedEventList' declared as function returning a functionxTaskRemoveFromUnorderedEventList’:
..tasks.c: In function
..tasks.c:2503: error: pxUnblockedTCB' undeclared (first use in this function)pxEventListItem’ undeclared (first use in this function)
..tasks.c:2508: error: cast specifies function type
..tasks.c:2511: error:
..tasks.c:2511: error: xItemValue' undeclared (first use in this function)uxPriority’ in something not a structure or union
..tasks.c:2515: error: syntax error before ')' token
..tasks.c:2525: error: request for member
..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':pxTimeOut’ undeclared (first use in this function)
..tasks.c:2548: error:
..tasks.c: At top level:
..tasks.c:2554: error: syntax error before ‘*’ token
..tasks.c:2555: error: xTaskCheckForTimeOut' declared as function returning a functionxTaskCheckForTimeOut’:
..tasks.c: In function
..tasks.c:2558: error: pxTimeOut' undeclared (first use in this function)pxTicksToWait’ undeclared (first use in this function)
..tasks.c:2559: error:
..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 ofvTaskSetTimeOutState’
..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 ofxReturn’
..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 ofvPortExitCritical’
..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':int’
..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
..tasks.c: In function uxTaskGetTaskNumber':pxTCB’ undeclared (first use in this function)
..tasks.c:2613: error: syntax error before "uxReturn"
..tasks.c:2614: error:
..tasks.c:2618: error: syntax error before ‘)’ token
..tasks.c:2619: error: uxReturn' undeclared (first use in this function)int’ in declaration of
..tasks.c: At top level:
..tasks.c:2634: warning: type defaults toUBaseType_t'vTaskSetTaskNumber’:
..tasks.c:2634: error: syntax error before "uxHandle"
..tasks.c: In function
..tasks.c:2636: error: pxTCB' undeclared (first use in this function)xTask’ undeclared (first use in this function)
..tasks.c:2638: error:
..tasks.c:2640: error: syntax error before ‘)’ token
..tasks.c:2641: error: uxHandle' undeclared (first use in this function)prvIdleTask’:
..tasks.c: In function
..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 ofvApplicationIdleHook’
..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':x’ undeclared (first use in this function)
..tasks.c:2807: error: syntax error before "x"
..tasks.c:2810: error:
..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)prvInitialiseTaskLists’:
..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
..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 ofvListInitialise’
..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 ofvListInitialise’
..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 ofvListInitialise’
..tasks.c:2980: warning: data definition has no type or storage class
..tasks.c:2996: warning: type defaults to int' in declaration ofpxDelayedTaskList’
..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 ofpxOverflowDelayedTaskList’
..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':uxNumberOfItems’ in something not a structure or union
..tasks.c:3009: error: syntax error before numeric constant
..tasks.c:3013: error: request for member
..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)xListEnd’ in something not a structure or union
..tasks.c:3023: error: syntax error before ')' token
..tasks.c:3023: error: request for member
..tasks.c: At top level:
..tasks.c:3039: error: syntax error before ‘}’ token
..tasks.c:3042: warning: type defaults to int' in declaration ofTickTypet’
..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':xGenericListItem’ in something not a structure or union
..tasks.c:3045: error: request for member
..tasks.c:3050: error: request for member xGenericListItem' in something not a structure or unionxGenericListItem’ in something not a structure or union
..tasks.c:3055: error: request for member
..tasks.c: At top level:
..tasks.c:3072: error: syntax error before ‘‘ token
..tasks.c:3072: error: syntax error before “StackType_t”
..tasks.c:3073: warning: return type defaults to int'prvAllocateTCBAndStack’:
..tasks.c: In function
..tasks.c:3074: error: pxNewTCB' undeclared (first use in this function)StackType_t’ undeclared (first use in this function)
..tasks.c:3102: error:
..tasks.c:3105: error: syntax error before ‘)’ token
..tasks.c:3105: error: usStackDepth' undeclared (first use in this function)int’
..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
..tasks.c: In function prvListTaskWithinSingleList':pxList’ undeclared (first use in this function)
..tasks.c:3151: error: syntax error before '*' token
..tasks.c:3154: error:
..tasks.c:3154: error: syntax error before numeric constant
..tasks.c:3156: error: pxConstList' undeclared (first use in this function)pxFirstTCB’ undeclared (first use in this function)
..tasks.c:3156: error:
..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 ofpxNextTCB’
..tasks.c:3164: error: pxConstList' undeclared here (not in a function)uxTask’ 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:
..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':StackType_t’ undeclared (first use in this function)
..tasks.c:3244: error:
..tasks.c: At top level:
..tasks.c:3254: error: syntax error before “uxTaskGetStackHighWaterMark”
..tasks.c:3255: warning: return type defaults to int'uxTaskGetStackHighWaterMark’:
..tasks.c: In function
..tasks.c:3256: error: pxTCB' undeclared (first use in this function)uxReturn’ 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:
..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':pxTCB’ undeclared (first use in this function)
..tasks.c:3287: error:
..tasks.c: In function prvResetNextTaskUnblockTime':pxTCB’ undeclared (first use in this function)
..tasks.c:3320: error:
..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 functionxTaskGetSchedulerState’:
..tasks.c: In function
..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':pxTCB’ undeclared (first use in this function)
..tasks.c:3391: error: syntax error before "const"
..tasks.c:3400: error:
..tasks.c:3400: error: request for member uxPriority' in something not a structure or unionuxPriority’ 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
..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 functionxTaskPriorityDisinherit’:
..tasks.c: In function
..tasks.c:3457: error: syntax error before “const”
..tasks.c:3458: error: function xReturn' is initialized like a variablepxTCB’ undeclared (first use in this function)
..tasks.c:3458: error: cast specifies function type
..tasks.c:3466: error:
..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 ofxReturn’
..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':vTaskList’:
..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
..tasks.c:3628: error: pxTaskStatusArray' undeclared (first use in this function)uxArraySize’ undeclared (first use in this function)
..tasks.c:3629: error: syntax error before "uxArraySize"
..tasks.c:3662: error:
..tasks.c:3673: error: x' undeclared (first use in this function)vTaskGetRunTimeStats’:
..tasks.c: In function
..tasks.c:3720: error: pxTaskStatusArray' undeclared (first use in this function)uxArraySize’ undeclared (first use in this function)
..tasks.c:3721: error: syntax error before "uxArraySize"
..tasks.c:3760: error:
..tasks.c:3777: error: x' undeclared (first use in this function)int’
..tasks.c: At top level:
..tasks.c:3840: error: syntax error before "uxTaskResetEventItemValue"
..tasks.c:3841: warning: return type defaults to
..tasks.c: In function uxTaskResetEventItemValue':uxReturn’ undeclared (first use in this function)
..tasks.c:3842: error: syntax error before "uxReturn"
..tasks.c:3844: error:
..tasks.c:3844: error: request for member xEventListItem' in something not a structure or unionxEventListItem’ in something not a structure or union
..tasks.c:3848: error: request for member
..tasks.c:3848: error: syntax error before “pxCurrentTCB”
..tasks.c: In function pvTaskIncrementMutexHeldCount':uxMutexesHeld’ in something not a structure or union
..tasks.c:3862: error: request for member
..tasks.c: At top level:
..tasks.c:3873: error: syntax error before “TickTypet”
..tasks.c: In function ulTaskNotifyTake':ulNotifiedValue’ in something not a structure or union
..tasks.c:3875: error: syntax error before "xTimeToWake"
..tasks.c:3881: error: request for member
..tasks.c:3884: error: request for member eNotifyState' in something not a structure or unionulReturn’
..tasks.c:3886: error: syntax error before numeric constant
..tasks.c:3904: error: syntax error before numeric constant
..tasks.c:3876: warning: unused variable
..tasks.c: At top level:
..tasks.c:3937: warning: type defaults to int' in declaration ofvPortYieldFromISR’
..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 ofvPortExitCritical’
..tasks.c:3949: warning: data definition has no type or storage class
..tasks.c:3951: warning: type defaults to int' in declaration ofvPortEnterCritical’
..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 ofvPortExitCritical’
..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 functionxTaskNotifyWait’:
..tasks.c: In function
..tasks.c:3985: error: syntax error before “xTimeToWake”
..tasks.c:3991: error: request for member eNotifyState' in something not a structure or unionulNotifiedValue’ in something not a structure or union
..tasks.c:3996: error: request for member
..tasks.c:3996: error: ulBitsToClearOnEntry' undeclared (first use in this function)eNotifyState’ in something not a structure or union
..tasks.c:3999: error: request for member
..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 ofvPortYieldFromISR’
..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 ofvPortExitCritical’
..tasks.c:4064: warning: data definition has no type or storage class
..tasks.c:4066: warning: type defaults to int' in declaration ofvPortEnterCritical’
..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 ofxReturn’
..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 ofvPortExitCritical’
..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 functionxTaskGenericNotify’:
..tasks.c: In function
..tasks.c:4106: error: pxTCB' undeclared (first use in this function)xReturn’ is initialized like a variable
..tasks.c:4108: error: function
..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 unionxTaskNotifyFromISR’ declared as function returning a function
..tasks.c:4185: warning: return makes integer from pointer without a cast
..tasks.c: At top level:
..tasks.c:4194: error:
..tasks.c: In function xTaskNotifyFromISR':pxTCB’ undeclared (first use in this function)
..tasks.c:4195: error:
..tasks.c:4197: error: function xReturn' is initialized like a variableuxSavedInterruptStatus’ undeclared (first use in this function)
..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:
..tasks.c:4222: error: configMAX_SYSCALL_INTERRUPT_PRIORITY' undeclared (first use in this function)uxPriority’ in something not a structure or union
..tasks.c:4250: error: cast specifies function type
..tasks.c:4268: error: cast specifies function type
..tasks.c:4280: error: request for member
..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' inasm’
..tasks.c:4295: error: unknown register name r0' inasm’
..tasks.c: In function vTaskNotifyGiveFromISR':pxTCB’ undeclared (first use in this function)
..tasks.c:4307: error:
..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)configMAXSYSCALLINTERRUPT_PRIORITY’ undeclared (first use in this function)
..tasks.c:4333: error:
..tasks.c:4349: error: cast specifies function type
..tasks.c:4361: error: request for member uxPriority' in something not a structure or unionr0′ in
..tasks.c:4367: error: cast specifies function type
..tasks.c:4333: error: unknown register nameasm'r0′ in
..tasks.c:4376: error: unknown register nameasm'xListEnd’ isn’t known
..tasks.c: At top level:
..list.h:210: error: storage size of
..tasks.c:143: error: storage size of xGenericListItem' isn't knownxEventListItem’ isn’t known
..tasks.c:144: error: storage size of
..tasks.c:245: warning: ‘xSchedulerRunning’ declared static' but never definedstatic’ but never defined
..tasks.c:247: warning: 'xYieldPending' declared
..tasks.c:248: warning: ‘xNumOfOverflows’ declared static' but never definedstatic’ but never defined
..tasks.c:2970: warning: 'prvInitialiseTaskLists' defined but not used
..tasks.c:486: warning: 'prvAddCurrentTaskToDelayedList' declared
..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
fatal error: freeRTOS.h: No such file or directory
Posted 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.
@aveal да не) у меня есть кубмх и куб иде. через куб иде получилось завести ртос, пусть и прописыванием всех папок вручную. как происходит: выбираешь плату, ставишь НЕ systick, указываешь в мидлвайр фриртос, активируешь пины какие надо, отладку по сериал вайр, жмакаешь шестеренку -> генерится код, прописываешь папки с фриртосом вручную, удалаяешь core/src/system_stm32xx.c (или как то так), пишешь какой-нибудь блинк и заливаешь на плату. все норм, потоки работают, диоды моргают. это все касается только одного куба иде, мх не запускаю вообще.
а если открыть мх и попробовать сгенерить код через него (по сути тоже самое), то он виснет после «жмаканья шестеренки» на том моменте, который я скинул скриншотом. при этом, если сконфигурировать код без фриртоса, как просто обычное однопоточное приложение, то сборка проходит до конца и потом предлагает перейти в куб иде чтоб продолжить работать со сгенерированным кодом. надеюсь понятно объяснил)
ОтветитьЦитата
Topic starter
Размещено : 21.06.2022 16:37
кажется я понял…
ОтветитьЦитата
Topic starter
Размещено : 21.06.2022 23:26
@andrej-garazh как раз хотел порекомендовать путь упростить и без русских символов попробовать )
ОтветитьЦитата
Размещено : 22.06.2022 11:58
@aveal вчера искал и не нашел, а сегодня успех)
скомпилилось с первого раза
ОтветитьЦитата
Topic starter
Размещено : 22.06.2022 23:19
@andrej-garazh рад, что все получилось в итоге)
ОтветитьЦитата
Размещено : 23.06.2022 10:18
Здравствуйте. У меня та же проблема — сначала ругался ”fatal error: FreeRTOS.h: No such file or directory» — тогда я добавил 3 пути и эта ругань пропала.
После этого появилось много ошибок, смысл которых в переопределении. Вот первая часть сообщения первой из ошибок: «102: multiple definition of `SystemCoreClock'». Присутствуют такие же ошибки по AHBPrescTable, SystemInit, SystemCoreClockUpdate и т.д.
У меня в имени пользователя есть Кириллица, поэтому я переместил репозиторий в папку без Кирилицы
Это не помогло и тогда пересоздал проект заново и ошибки пропали. Видимо в старом проекте были ссылки на прежний репозиторий.
Но появились ошибки «section `._user_heap_stack’ will not fit in region `RAM'» и «`RAM’ overflowed by 248 bytes». Не подскажите что с ними делать? У меня плата Nucleo STM32F030R8
Спойлер
Полный текст ошибок
c:stm32toolchainstm32cubeide_1.7.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127toolsarm-none-eabibinld.exe: 033 FreeRTOS. 3 tasks with different times. STM32F030R8_.elf section `._user_heap_stack’ will not fit in region `RAM’
c:stm32toolchainstm32cubeide_1.7.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127toolsarm-none-eabibinld.exe: region `RAM’ overflowed by 248 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile 033 FreeRTOS. 3 tasks with different times. STM32F030R8_.elf] Error 1
ОтветитьЦитата
Размещено : 03.08.2022 16:18
Привет. У меня переводилка стоит на компе, называется «QTranslator» (не реклама 😀 ), она говорит, что код не влезет в чип. Потому что:
Ежели так, то можно попробовать уменьшить стек и посмотреть что будет.
ОтветитьЦитата
Topic starter
Размещено : 03.08.2022 16:32
@andrej-garazh допустимый диапазон 128…3072. Если указать вне диапазона — то выводится уведомление Out of range и перед генерацией кода IDE выдаёт ошибку. Я попробовал уменьшить количество task’ов с трёх до одной — не помогло.
ОтветитьЦитата
Размещено : 03.08.2022 21:25
Попробовал собрать пустой проект с твоим чипом. Да, сразу показывает, что RAM usage почти 100%. Я так понимаю, ты включал соответствующую настройку во фриртосе, чтобы не вываливалось это сообщение?
Собрал проект для 103c8t6 (которая самая ходовая на алике) с фриртосом, получилось использование RAM чуть больше 8кб, а на твоем чипе 8кб ВСЕГО. Есть подозрение, что фриртос на твой чип не влезет без танцев с бубном) Видимо придется подумать…
ОтветитьЦитата
Topic starter
Размещено : 03.08.2022 22:26
Да, USE_NEWLIB_REENTRANT установил в Enabled, хотя я не понимаю смысла этого.
У меня есть ещё плата STM32G071RB с 32 Kbytes SRAM — на ней всё взлетело с первого раза. Что характерно — пути к папкам include, GCCARM_CM0 и CMSIS_RTOS_V2 указывать не потребовалось. Спасибо большое за подсказку про нехватку объёма SRAM
ОтветитьЦитата
Размещено : 04.08.2022 20:40
хотя я не понимаю смысла этого.
На здоровье) А эта штука, насколько я понял из описания, позволяет работать с оперативкой на более глубоком уровне. Возможно это позволит решить твою изначальную проблему.
ОтветитьЦитата
Topic starter
Размещено : 04.08.2022 22:23
Нашел я код и хотел использовать его в дипломном проекте, но при компиляции он выдает ошибку такую ошибку
Arduino: 1.8.19 (Windows 10), Плата:»Arduino Uno»
Несколько библиотек найдено для «WiFiClientSecure.h»
In file included from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFiGeneric.h:27:0,
Используется: C:Program Files (x86)ArduinolibrariesWiFiClientSecure
from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFiSTA.h:28,
Не используется: C:Program Files (x86)ArduinolibrariesESP8266WiFi
from C:Program Files (x86)ArduinolibrariesWiFisrc/WiFi.h:32,
from C:Program Files (x86)ArduinolibrariesWiFiClientSecuresrc/WiFiClientSecure.h:25,
from C:UserstonymDownloadsspotify-api-arduino-mainspotify-api-arduino-mainexamplesgetCurrentlyPlayinggetCurrentlyPlaying.ino:37:
C:Program Files (x86)ArduinolibrariesWiFisrc/esp_event.h:12:10: fatal error: freertos/FreeRTOS.h: No such file or directory
#include «freertos/FreeRTOS.h»
^~~~~~~~~~~~~~~~~~~~~compilation terminated.
exit status 1
Ошибка компиляции для платы Arduino Uno.
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»
Прилагаю код
// ----------------------------
// Standard Libraries
// ----------------------------
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
#include <WiFiClientSecure.h>
// ----------------------------
// Additional Libraries - each one of these will need to be installed.
// ----------------------------
#include <SpotifyArduino.h>
// Library for connecting to the Spotify API
// Install from Github
// https://github.com/witnessmenow/spotify-api-arduino
// including a "spotify_server_cert" variable
// header is included as part of the SpotifyArduino libary
#include <SpotifyArduinoCert.h>
#include <ArduinoJson.h>
// Library used for parsing Json from the API responses
// Search for "Arduino Json" in the Arduino Library manager
// https://github.com/bblanchon/ArduinoJson
//------- Replace the following! ------
char ssid[] = "SSID"; // your network SSID (name)
char password[] = "password"; // your network password
char clientId[] = " "; // Your client ID of your spotify APP
char clientSecret[] = " "; // Your client Secret of your spotify APP (Do Not share this!)
// Country code, including this is advisable
#define SPOTIFY_MARKET "US"
#define SPOTIFY_REFRESH_TOKEN "AAAAAABBBBBBCCCCCCCDDDDDDD"
//------- ---------------------- ------
WiFiClientSecure client;
SpotifyArduino spotify(client, clientId, clientSecret, SPOTIFY_REFRESH_TOKEN);
unsigned long delayBetweenRequests = 60000; // Time between requests (1 minute)
unsigned long requestDueTime; //time when request due
void setup()
{
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
// Handle HTTPS Verification
#if defined(ESP8266)
client.setFingerprint(SPOTIFY_FINGERPRINT); // These expire every few months
#elif defined(ESP32)
client.setCACert(spotify_server_cert);
#endif
// ... or don't!
//client.setInsecure();
// If you want to enable some extra debugging
// uncomment the "#define SPOTIFY_DEBUG" in ArduinoSpotify.h
Serial.println("Refreshing Access Tokens");
if (!spotify.refreshAccessToken())
{
Serial.println("Failed to get access tokens");
}
}
void printCurrentlyPlayingToSerial(CurrentlyPlaying currentlyPlaying)
{
// Use the details in this method or if you want to store them
// make sure you copy them (using something like strncpy)
// const char* artist =
Serial.println("--------- Currently Playing ---------");
Serial.print("Is Playing: ");
if (currentlyPlaying.isPlaying)
{
Serial.println("Yes");
}
else
{
Serial.println("No");
}
Serial.print("Track: ");
Serial.println(currentlyPlaying.trackName);
Serial.print("Track URI: ");
Serial.println(currentlyPlaying.trackUri);
Serial.println();
Serial.println("Artists: ");
for (int i = 0; i < currentlyPlaying.numArtists; i++)
{
Serial.print("Name: ");
Serial.println(currentlyPlaying.artists[i].artistName);
Serial.print("Artist URI: ");
Serial.println(currentlyPlaying.artists[i].artistUri);
Serial.println();
}
Serial.print("Album: ");
Serial.println(currentlyPlaying.albumName);
Serial.print("Album URI: ");
Serial.println(currentlyPlaying.albumUri);
Serial.println();
long progress = currentlyPlaying.progressMs; // duration passed in the song
long duration = currentlyPlaying.durationMs; // Length of Song
Serial.print("Elapsed time of song (ms): ");
Serial.print(progress);
Serial.print(" of ");
Serial.println(duration);
Serial.println();
float percentage = ((float)progress / (float)duration) * 100;
int clampedPercentage = (int)percentage;
Serial.print("<");
for (int j = 0; j < 50; j++)
{
if (clampedPercentage >= (j * 2))
{
Serial.print("=");
}
else
{
Serial.print("-");
}
}
Serial.println(">");
Serial.println();
// will be in order of widest to narrowest
// currentlyPlaying.numImages is the number of images that
// are stored
for (int i = 0; i < currentlyPlaying.numImages; i++)
{
Serial.println("------------------------");
Serial.print("Album Image: ");
Serial.println(currentlyPlaying.albumImages[i].url);
Serial.print("Dimensions: ");
Serial.print(currentlyPlaying.albumImages[i].width);
Serial.print(" x ");
Serial.print(currentlyPlaying.albumImages[i].height);
Serial.println();
}
Serial.println("------------------------");
}
void loop()
{
if (millis() > requestDueTime)
{
Serial.print("Free Heap: ");
Serial.println(ESP.getFreeHeap());
Serial.println("getting currently playing song:");
// Market can be excluded if you want e.g. spotify.getCurrentlyPlaying()
int status = spotify.getCurrentlyPlaying(printCurrentlyPlayingToSerial, SPOTIFY_MARKET);
if (status == 200)
{
Serial.println("Successfully got currently playing");
}
else if (status == 204)
{
Serial.println("Doesn't seem to be anything playing");
}
else
{
Serial.print("Error: ");
Serial.println(status);
}
requestDueTime = millis() + delayBetweenRequests;
}
}
Что делать?
Добрый день, подскажите, пожалуйста, как правильно «перетащить» проект, ранее написанный, с использованием — «keil MDK v5 + Cube MX» в CubeIDE.
1. Нажимаю кнопочку «Open project from File System» в меню «File», далее выбираю папку проекта целиком
2. Удаляю папку MDK-ARM, т.к. она не нужна (файлы для keil)
3. CubeIDE прекрасно распознает файл с расширением .ioc, после генерации проекта создает свои новые файлы, при этом не затрагивая пользовательские файлы main.c и другие
Но при попытке компиляции этого проекта, не может найти файл main.h
Весь лог ошибок:
../Src/main.c:42:10: fatal error: main.h: No such file or directory #include "main.h" ^~~~~~~~ compilation terminated. make: *** [Src/subdir.mk:21: Src/main.o] Error 1 make: *** Waiting for unfinished jobs.... ../Src/stm32f1xx_hal_msp.c:43:10: fatal error: main.h: No such file or directory #include "main.h" ^~~~~~~~ compilation terminated. make: *** [Src/subdir.mk:23: Src/stm32f1xx_hal_msp.o] Error 1 ../Src/stm32f1xx_it.c:37:10: fatal error: main.h: No such file or directory #include "main.h" ^~~~~~~~ compilation terminated. make: *** [Src/subdir.mk:25: Src/stm32f1xx_it.o] Error 1 ../Src/system_stm32f1xx.c:77:10: fatal error: stm32f1xx.h: No such file or directory #include "stm32f1xx.h" ^~~~~~~~~~~~~ compilation terminated. make: *** [Src/subdir.mk:27: Src/system_stm32f1xx.o] Error 1 ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c:52:10: fatal error: stm32f1xx_hal.h: No such file or directory #include "stm32f1xx_hal.h" ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk:198: Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o] Error 1 ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c:276:10: fatal error: stm32f1xx_hal.h: No such file or directory #include "stm32f1xx_hal.h" ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk:200: Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o] Error 1 "make -j16 all" terminated with exit code 2. Build might be incomplete. 02:48:13 Build Failed. 13 errors, 0 warnings. (took 11s.700ms)
Предполагаю, конечно что сбились пути, но не могу понять и отыскать, как в CubeIDE их переписать. Подскажите, пожалуйста. Спасибо.



