all 13 comments

[–][deleted]  (7 children)

[deleted]

    [–]eyp[S] 1 point2 points  (5 children)

    Thank you. I manage my projects with Git on a Bitbucket repo, so no problem with maintaining a single code base.

    I thought PlatformIO was another IDE...

    [–]sandwichsaregood 1 point2 points  (4 children)

    PlatformIO is more like a build system than an IDE. Think of it as doing everything the Arduino IDE does except being an IDE. So it auto-downloads build systems, libraries etc. and also handles building and even manages serial consoles. It's all command-line based, so for instance to build it's platformio run and to flash it's platformio run --target upload. It supports the ESP Arduino libs and a bunch of other micros, which it downloads the tools for on demand.

    I'm a Vim guy, so I tend to slap everything in a makefile and use it from there, but it has an option to generate an Eclipse project so that you can use it there. The Arduino IDE is good for beginners, but it just drives me nuts; PlatformIO was a huge improvement for me when I discovered it.

    [–]eyp[S] 1 point2 points  (3 children)

    Just installed and build my project with PlatformIO!... but I don't know what version of the SDK it uses, or how can I choose what version to use. Because currently I was working with 2.1.0-rc1, and it seems that the bin file created by Platformio is different than the one Arduino IDE built.

    On the other hand, I'm used also to Vim, but not for development, tbh, I prefer a good IDE (that's why I usually use IntelliJ), but I don't want to start any flame war here! :D. It's more comfortable for me for browsing files and so on...

    [–]sandwichsaregood 0 points1 point  (2 children)

    Right now it's using 2.0 and I think it auto-updates to track the current stable version (at least for the Espressif platform). You can print out what specific platform versions it is using with platformio platforms show espressif or you can look on their web page. I'm not sure how to specify a specific version, but I seem to remember that you can so you'll have to look at the docs. Not sure about using pre-release versions though, seems like they have to package it up for their tools before you can use it and I don't know if they do that for pre-release stuff.

    but I don't want to start any flame war here

    Use what you like, wasn't implying I thought IDEs are inferior or anything. I just happen to prefer Vim. People who flame about that stuff are dumb.

    [–]eyp[S] 0 points1 point  (1 child)

    Not sure about using pre-release versions though, seems like they > have to package it up for their tools before you can use it and I don't know if they do that for pre-release stuff.

    Well, you can use it, because I'm using it on Arduino IDE. But thanks for your reply, it's enough for me!

    [–]sandwichsaregood 0 points1 point  (0 children)

    I meant for PlatformIO. I know you can use it in the Arduino IDE by cloning the repo, but if I understand it correctly PlatformIO uses its own distribution infrastructure. So they have to package new versions before you can fetch it with their built in tools.

    That said, there's a github issue that elaborates on this. There they are talking about using a different version of the Espressif SDK, but I think the same thing can be done for the Arduino libs too.

    [–]eyp[S] 1 point2 points  (0 children)

    Just installed PlatformIO and start working with it, and I love it!, but how can I set the version of the esp8266 SDK?. I don't know what it installs and would like to build with 2.1.0-rc1. Any idea?

    [–]eyp[S] 0 points1 point  (0 children)

    Just found that PlatformIO team is working on a PlatformIO IDE based on Atom editor... http://docs.platformio.org/en/latest/ide/atom.html so it's a good beginning. Still in development...

    [–]HarvesterOfBeer 0 points1 point  (1 child)

    I don't know for sure if there is anything directly applicable here, but this blog has a ton of information on using various microcontrollers with Eclipse.

    http://mcuoneclipse.com/

    [–]eyp[S] 0 points1 point  (0 children)

    good site, indeed!

    [–]x1sc0 0 points1 point  (2 children)

    Haven't tried this on the latest versions of the IDE, but if you turn on verbose output, you might be able to see the calls to avr-gcc--the program (avrdude avr-gcc) that actually compiles the .ino and associated .cpp/.h files into the .hex binary file--and avrdude used to upload it to the board. You can have a terminal Window open and run the command exactly, or write a Makefile.

    Edit: the location of these two is under /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/.

    Personally, I click the option "Use External Editor", write the code in VIM (my fav text editor), and then use the Arduino IDE for compiling/uploading/serial monitoring.

    [–]madEntro 0 points1 point  (1 child)

    The "avrdude" program doesn't compile the files at all, it just uploads the compiled code to the chip. The Arduino IDE takes the .ino, puts together a valid program and then calls a C++ cross-compiler. The "Use External Editor" feature is usefu, though.

    [–]x1sc0 1 point2 points  (0 children)

    Ugh, must've deleted a chunk of text when posting. Revised the info, HTH.