Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
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....
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
vsMicro and FreeRTOS (ESP32) (Read 2549 times)
Deous
Junior Member
**
Offline



Posts: 18
vsMicro and FreeRTOS (ESP32)
Apr 3rd, 2018 at 12:44pm
 
Hi, I want to ask question how to work with ESP32 project that is using FreeRTOS - Espressif-idf - not necessarily for Arduino framework
I want to use plain IoT Dev Framework without Arduino libraries.
Is it possible to build project like that under vsMicro extension in VS ?
Is it possible at all? How?

Thanks
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: vsMicro and FreeRTOS (ESP32)
Reply #1 - Apr 3rd, 2018 at 2:13pm
 
Visual Micro currently only performs an Arduino build.

It is not so difficult to create a custom arduino core but will take a bit of reading.

Do you know the build commands for the FreeRTOS system?


Back to top
 
WWW  
IP Logged
 
Deous
Junior Member
**
Offline



Posts: 18
Re: vsMicro and FreeRTOS (ESP32)
Reply #2 - Apr 3rd, 2018 at 2:45pm
 
I don't - but doesn't the vsMicro set up such build commands when compiling Arduino projects?
They told me Arduino runs on top of FreeRTOS
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: vsMicro and FreeRTOS (ESP32)
Reply #3 - Apr 3rd, 2018 at 2:50pm
 
The way arduino works is that every core has a set of code files along with a boards.txt and platform.txt. The .txt files contain the instructions used to determine the required build commands for each board. They are all different.

For example if you are building the Arduino Uno then you are using AVR architecture. Below the ArduinoIDE\Hardware\AVR folder is the avr core along with .txt files.

When you install esp32 or esp8266 Arduino cores then you are installed some code files and also the .txt files.

So you need to make or use an arduino core

There are a lot of people using the standard exressif cores for arduino so that works fine.

FreeRTOS is not a part of any standard arduino cores.

The best solution is to make what you want work in the arduino ide then visual micro should also be happy.
Back to top
« Last Edit: Apr 3rd, 2018 at 2:51pm by Visual Micro »  
WWW  
IP Logged
 
Deous
Junior Member
**
Offline



Posts: 18
Re: vsMicro and FreeRTOS (ESP32)
Reply #4 - Apr 3rd, 2018 at 3:41pm
 
Thank you. Are there any guides how to use those txt and setup files?
I wish there was an example how to build project using just idf plain framework.
Maybe you could suggest where to find sample projects or detailed steps how to do that.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: vsMicro and FreeRTOS (ESP32)
Reply #5 - Apr 3rd, 2018 at 3:46pm
 
The guide is here but if you can't answer my initial questions it's going to be hard for you.

Maybe I am wrong but you might be jumping a bit too fast

Did you try the arduino espressif?

https://github.com/espressif/arduino-esp32
Back to top
 
WWW  
IP Logged
 
Deous
Junior Member
**
Offline



Posts: 18
Re: vsMicro and FreeRTOS (ESP32)
Reply #6 - Apr 3rd, 2018 at 4:21pm
 
I have arduino-idf installed as per instructions and AIDE recognizes all fine but I want to be able to build VS projects without Arduino - just idf/FRTOS. C++ if possible (it is under Eclipse)
The reason is that Arduino framework 'doesn't' like non-Arduino boards and most of the devices/sensors have troubles working properly.
Back to top
« Last Edit: Apr 3rd, 2018 at 4:22pm by Deous »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: vsMicro and FreeRTOS (ESP32)
Reply #7 - Apr 3rd, 2018 at 4:25pm
 
Not currently.

Because Visual Micro is mainly free or low price there isn't room for complex support which is why I stick to what is published and known.

If you can find a user who knows what they are doing then they could help us understand what doesn't work.
Back to top
 
WWW  
IP Logged
 
Deous
Junior Member
**
Offline



Posts: 18
Re: vsMicro and FreeRTOS (ESP32)
Reply #8 - Apr 4th, 2018 at 1:29pm
 
I understand. Well, minor problem with vsMicro is that when you load .ino project the references are only to header files - not cpp. If you follow references and definitions - they jump only into declarations in headers. But I want to get into the body of the class or function and this is located in invisible .cpp files. That would make the whole programming work much easier.
Maybe you have some advices how to overcome that?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: vsMicro and FreeRTOS (ESP32)
Reply #9 - Apr 4th, 2018 at 1:31pm
 
This is how VS works if sources are not in the project.

If you click "vMicro>Toggle Hidden Files" then core and library sources are added as short cuts to the project.

Then F12 takes you to the cpp
Back to top
« Last Edit: Apr 4th, 2018 at 1:31pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print