Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Path to FreeRtos.h ERROR (Read 2331 times)
Kabron
Full Member
***
Offline



Posts: 154
Path to FreeRtos.h ERROR
Oct 7th, 2021 at 7:36am
 
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.
Back to top
 

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



Posts: 1576
Re: Path to FreeRtos.h ERROR
Reply #1 - Oct 7th, 2021 at 11:20am
 
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: 154
Re: Path to FreeRtos.h ERROR
Reply #2 - Oct 7th, 2021 at 11:59am
 
Sure.
Back to top
 

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



Posts: 154
Re: Path to FreeRtos.h ERROR
Reply #3 - Oct 11th, 2021 at 11:38am
 
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.
Back to top
« Last Edit: Oct 11th, 2021 at 11:39am by Kabron »  
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1576
Re: Path to FreeRtos.h ERROR
Reply #4 - Oct 12th, 2021 at 12:07pm
 
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: 154
Re: Path to FreeRtos.h ERROR
Reply #5 - Oct 12th, 2021 at 3:28pm
 
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.
Back to top
« Last Edit: Oct 12th, 2021 at 3:31pm by Kabron »  
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1576
Re: Path to FreeRtos.h ERROR
Reply #6 - Oct 13th, 2021 at 9:25am
 
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: 154
Re: Path to FreeRtos.h ERROR
Reply #7 - Oct 13th, 2021 at 10:03am
 
Well, my json link in Arduino IDE is:
https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_in
dex.json

Now actual version is 1.0.9

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



Posts: 1576
Re: Path to FreeRtos.h ERROR
Reply #8 - Oct 18th, 2021 at 11:59am
 
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: 154
Re: Path to FreeRtos.h ERROR
Reply #9 - Oct 18th, 2021 at 2:04pm
 
Yes, they are:
Quote:
All occurences of FreeRTOS.h in .\Arduino

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

d:\Arduino\portable\packages\Seeeduino\hardware\samd\1.8.1\libraries\Seeed_Ardui
no_FreeRTOS\
version=1.1.0 architectures=*

d:\Arduino\portable\packages\m5stack_1_0_7\hardware\esp32\1.0.7\tools\sdk\includ
e\freertos\freertos\
no library.properties only .h file

d:\Arduino\portable\packages\m5stack_1_0_7\hardware\esp32\1.0.7\libraries\BLE\sr
c\
no library.properties only .h & .cpp files

=========== This one used by VM =============
d:\Arduino\portable\packages\m5stack\hardware\esp32\1.0.9\tools\sdk\include\free
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

d:\Arduino\portable\packages\esp32\hardware\esp32\1.0.6\tools\sdk\include\freert
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

d:\Arduino\portable\packages\adafruit\hardware\nrf52\0.21.0\cores\nRF5\freertos\
Source\include\
no library.properties only .h file
Back to top
« Last Edit: Oct 18th, 2021 at 2:10pm by Kabron »  
 
IP Logged
 
Kabron
Full Member
***
Offline



Posts: 154
Re: Path to FreeRtos.h ERROR
Reply #10 - Oct 18th, 2021 at 2:07pm
 
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: 1576
Re: Path to FreeRtos.h ERROR
Reply #11 - Oct 18th, 2021 at 2:12pm
 
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: 1576
Re: Path to FreeRtos.h ERROR
Reply #12 - Oct 21st, 2021 at 4:57pm
 
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: 154
Re: Path to FreeRtos.h ERROR
Reply #13 - Oct 22nd, 2021 at 7:08am
 
Yes,

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


collision gone.

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