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) vsMicro and FreeRTOS (ESP32) (Read 7878 times)
Deous
Junior Member
**
Offline


Posts: 18
Joined: Mar 22nd, 2018
vsMicro and FreeRTOS (ESP32)
Apr 3rd, 2018 at 11:44am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vsMicro and FreeRTOS (ESP32)
Reply #1 - Apr 3rd, 2018 at 1:13pm
Print Post  
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
Joined: Mar 22nd, 2018
Re: vsMicro and FreeRTOS (ESP32)
Reply #2 - Apr 3rd, 2018 at 1:45pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vsMicro and FreeRTOS (ESP32)
Reply #3 - Apr 3rd, 2018 at 1:50pm
Print Post  
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.
« Last Edit: Apr 3rd, 2018 at 1:51pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Deous
Junior Member
**
Offline


Posts: 18
Joined: Mar 22nd, 2018
Re: vsMicro and FreeRTOS (ESP32)
Reply #4 - Apr 3rd, 2018 at 2:41pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vsMicro and FreeRTOS (ESP32)
Reply #5 - Apr 3rd, 2018 at 2:46pm
Print Post  
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
Joined: Mar 22nd, 2018
Re: vsMicro and FreeRTOS (ESP32)
Reply #6 - Apr 3rd, 2018 at 3:21pm
Print Post  
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.
« Last Edit: Apr 3rd, 2018 at 3:22pm by Deous »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vsMicro and FreeRTOS (ESP32)
Reply #7 - Apr 3rd, 2018 at 3:25pm
Print Post  
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
Joined: Mar 22nd, 2018
Re: vsMicro and FreeRTOS (ESP32)
Reply #8 - Apr 4th, 2018 at 12:29pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vsMicro and FreeRTOS (ESP32)
Reply #9 - Apr 4th, 2018 at 12:31pm
Print Post  
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
« Last Edit: Apr 4th, 2018 at 12:31pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint