Using PlatformIO?

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Using PlatformIO?

Postby Vader_Mester » Wed Aug 01, 2018 12:02 pm

Hi All,

Anyone using PlatformIO? I welcome opinions, experience, Pros and cons for this platform.

Thanks
[BEN]

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Using PlatformIO?

Postby Deouss » Wed Aug 01, 2018 12:04 pm

I tried and hated it. When I switched to CMake it is so much better and so simple you cannot compare the convenience and speed
I mean Visual Studio Code + CMake build environment for ESP32 freeRTOS

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Using PlatformIO?

Postby mikemoy » Wed Aug 01, 2018 1:00 pm

I have been using platform IO for several months now. I am still on the fence with using it as compared to VSC & CMake.
I have not had any issues with it at all, and I like the ability to create a new project using either the Arduino framework or IDF.
I'll keep using both for now. The only downside I have seen with Platform IO is that (last I checked) when using Arduino you have no way to setup menuconfig.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Using PlatformIO?

Postby Deouss » Wed Aug 01, 2018 1:17 pm

Last time I checked PlatformIO does not work with FreeRTOS.
Did you manage to run and compile IDF projects in full RTOS environment or just Arduino?
I had quite some issues with Arduino as well

aboaboit
Posts: 9
Joined: Mon Jul 02, 2018 9:02 pm

Re: Using PlatformIO?

Postby aboaboit » Wed Aug 01, 2018 2:29 pm

Vader_Mester wrote: Anyone using PlatformIO? I welcome opinions, experience, Pros and cons for this platform.
It should work fine, both for Arduino and ESP-IDF

As already noted, the major downside is that, for the time being, it is not possible to customize anything below Arduino.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Using PlatformIO?

Postby Deouss » Wed Aug 01, 2018 2:48 pm

aboaboit wrote:
It should work fine, both for Arduino and ESP-IDF

As already noted, the major downside is that, for the time being, it is not possible to customize anything below Arduino.
What do you mean both ?
Arduino uses IDF and runs on top of RTOS )
IDF is written in FreeRTOS API. Arduino is just a framework for RTOS.

Check my setup guide posted here:
https://esp32.com/viewtopic.php?f=13&t=6383

aboaboit
Posts: 9
Joined: Mon Jul 02, 2018 9:02 pm

Re: Using PlatformIO?

Postby aboaboit » Wed Aug 01, 2018 4:01 pm

Deouss wrote:What do you mean both ?
It means you're able to use PlatformIO for either Arduino projects or ESP-IDF projects side-by-side in one single installation.
P.S.: I will have a look at your guide, it could happen that I find your way better than PIO, who knows! :)

Who is online

Users browsing this forum: Bing [Bot], cdollar, Majestic-12 [Bot], patrik-g and 67 guests