Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Path to FreeRtos.h ERROR (Read 4797 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Path to FreeRtos.h ERROR
Oct 7th, 2021 at 6:36am
Print Post  
Compilng Grbl_ESP32 for M5Stack-Fire board, I got error finding FreeRtos.h file in I2SOut.cpp module.

In Arduino IDE compilation ends successfuly.

Changing include from 
#include <FreeRTOS.h>
to
#include "freertos/FreeRTOS.h"
solves the problem.

Compilation output and sample project attached.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #1 - Oct 7th, 2021 at 10:20am
Print Post  
Thanks for the report and the files.

Can you attach the Arduino IDE output with the Preferences > "Show Verbose Output During Compilation" checked?
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #2 - Oct 7th, 2021 at 10:59am
Print Post  
Sure.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #3 - Oct 11th, 2021 at 10:38am
Print Post  
One more very unpleasant thing:
re-compilation causes link error:
xtensa-esp32-elf-gcc*: error: src\WebUI\WebServer.cpp.o: No such file or directory
only cleaning solution solve this.
« Last Edit: Oct 11th, 2021 at 10:39am by Kabron »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #4 - Oct 12th, 2021 at 11:07am
Print Post  
Can you confirm where the M5Stack core in use in the ArduinoIDE log is downloadable from (v1.0.7) so we can investigate further:
D:\Arduino\portable\packages\m5stack\hardware\esp32\1.0.7

Visual Micro is using the v1.0.6 core in the output:
d:\Arduino\portable\packages\esp32\hardware\esp32\1.0.6

Also is the same board selected (from the same sub section) in both Ide's?
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #5 - Oct 12th, 2021 at 2:28pm
Print Post  
Hmm... Exactly!
I did not notice that difference.
Actually Arduino and VM used different packadges.
But why?
I renamed esp32 packadge folder and now VM compiled as Arduino. 
Boards are the same.
WebServer.cpp.o error gone, but FreeRtos remain.
« Last Edit: Oct 12th, 2021 at 2:31pm by Kabron »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #6 - Oct 13th, 2021 at 8:25am
Print Post  
Thanks for the update.

It may be both packages have the same board-id for this board which can cause some issues.

Can you confirm where we can download the 1.0.7 m5stack core from so we can replicate and investigate further?
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #7 - Oct 13th, 2021 at 9:03am
Print Post  
Well, my json link in Arduino IDE is:
https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_in...

Now actual version is 1.0.9

And here is corresponding doc page
https://docs.m5stack.com/en/quick_start/m5core/arduino
« Last Edit: Oct 13th, 2021 at 9:04am by Kabron »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #8 - Oct 18th, 2021 at 10:59am
Print Post  
Thanks for the additional detail.

Can you confirm if you have a FreeRTOS Library, or a Library containing a FreeRTOS.h in your sketchbook\libraries folder? (Possibly for a different architecture?)
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #9 - Oct 18th, 2021 at 1:04pm
Print Post  
Yes, they are:
Quote:
All occurences of FreeRTOS.h in .\Arduino

d:\Arduino\Proj\libraries\FreeRTOS\                                                      
version=10.4.4-2 architectures=avr

no_FreeRTOS\
version=1.1.0 architectures=*

e\freertos\freertos\
no library.properties only .h file

c\
no library.properties only .h & .cpp files

=========== This one used by VM =============
rtos\freertos\
no library.properties only .h file
=========== This one used by VM =============

d:\Arduino\portable\packages\m5stack\hardware\esp32\1.0.9\libraries\BLE\src\
no library.properties only .h & .cpp files

os\freertos\
no library.properties only .h file

d:\Arduino\portable\packages\esp32\hardware\esp32\1.0.6\libraries\BLE\src\
no library.properties only .h & .cpp files

Source\include\
no library.properties only .h file
« Last Edit: Oct 18th, 2021 at 1:10pm by Kabron »  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #10 - Oct 18th, 2021 at 1:07pm
Print Post  
But, if I understood correctly, there is no dedicated FreeRTOS library for eps32.
Maybe it is the reason of confuse?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #11 - Oct 18th, 2021 at 1:12pm
Print Post  
Thanks for the confirmation, we just wanted to be sure we are replicating the same root cause of the issue.

We will update when there is a fix available.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Path to FreeRtos.h ERROR
Reply #12 - Oct 21st, 2021 at 3:57pm
Print Post  
Please try the latest release (21.09.17.5) which should resolve this issue, available at the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Path to FreeRtos.h ERROR
Reply #13 - Oct 22nd, 2021 at 6:08am
Print Post  
Yes,

#include <FreeRTOS.h>
////#include "freertos/FreeRTOS.h"


collision gone.

Thanks!
« Last Edit: Oct 22nd, 2021 at 6:08am by Kabron »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint