Visual Micro
https://www.visualmicro.com/forums/YaBB.pl
Other >> Project Guidance >> vsMicro and FreeRTOS (ESP32)
https://www.visualmicro.com/forums/YaBB.pl?num=1522755858

Message started by Deous on Apr 3rd, 2018 at 12:44pm

Title: vsMicro and FreeRTOS (ESP32)
Post by Deous on 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

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Visual Micro on 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?



Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Deous on 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

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Visual Micro on 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.

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Deous on 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.

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Visual Micro on 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

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Deous on 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.

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Visual Micro on 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.

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Deous on 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?

Title: Re: vsMicro and FreeRTOS (ESP32)
Post by Visual Micro on 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

Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2020. All Rights Reserved.