Compiling with PlatformIO (on Mac...)
Moderators: grovkillen, Stuntteam, TD-er
Compiling with PlatformIO (on Mac...)
Hi all, it is clear PlatformIO is pretty important going forward.
I tried to read all the PlatformIO articles, and the wiki pages. They are not in one place, which makes it more difficult. I am on a Mac, have gone through all the Mac related install topics of the wiki, for instance on:
https://www.letscontrolit.com/wiki/inde ... Platformio
Disable Linter / Install Atom / Started Atom / Installed the PlatformIDE (IDE 2.0.0-beta.3 and Core 3.4.0b2) / Python 2.7
Then, at the bottom of the wiki you say: "If atom is slughish, hanging and giving errors, then there is probably something wrong with the gcc-linter. I had to remove platformio-* and linter-gcc and reinstall platformio-ide to fix it."
QUESTION 1 -- How does one do removal of above? Do I go find this on the OS level, and delete it? As I do have a problem, as follows:
After downoading the source for ESPEasy_v2.0.0-dev8, I open the file ESPEasy.ino, hit F7, and then do not get any response, and then after some time, the following screen pops up:
What are the steps to solve this please? I would like to get PlatformIO working, it seams the investment in time will be worth it going forward.
Ohh, I did not log into PLatformIO when atom starts up, is this required?
I tried to read all the PlatformIO articles, and the wiki pages. They are not in one place, which makes it more difficult. I am on a Mac, have gone through all the Mac related install topics of the wiki, for instance on:
https://www.letscontrolit.com/wiki/inde ... Platformio
Disable Linter / Install Atom / Started Atom / Installed the PlatformIDE (IDE 2.0.0-beta.3 and Core 3.4.0b2) / Python 2.7
Then, at the bottom of the wiki you say: "If atom is slughish, hanging and giving errors, then there is probably something wrong with the gcc-linter. I had to remove platformio-* and linter-gcc and reinstall platformio-ide to fix it."
QUESTION 1 -- How does one do removal of above? Do I go find this on the OS level, and delete it? As I do have a problem, as follows:
After downoading the source for ESPEasy_v2.0.0-dev8, I open the file ESPEasy.ino, hit F7, and then do not get any response, and then after some time, the following screen pops up:
What are the steps to solve this please? I would like to get PlatformIO working, it seams the investment in time will be worth it going forward.
Ohh, I did not log into PLatformIO when atom starts up, is this required?
- Attachments
-
- Screen Shot 2017-05-17 at 9.07.18 PM.png (35.23 KiB) Viewed 12484 times
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Compiling with PlatformIO (on Mac...)
That's not the way in Atom.I open the file ESPEasy.ino
Use File> Add Project Folder, then select the directory Source (containing .pioenvs, lib and src)
can be found under Packages (I think I removed it there)gcc-linter
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: Compiling with PlatformIO (on Mac...)
Thank you, that worked. Now busy compiling, want to see if I can get a .bin file to upload via the ESP OTA web interface.That's not the way in Atom.
Use File> Add Project Folder, then select the directory Source (containing .pioenvs, lib and src)
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
Okay, I think I compiled it. I chose PIO clean (normal_1024) options, see below, it runs some scripts at the bottom, but do not find a compiled .bin file after that, does it build a .bin file? Where do search for it?
- Attachments
-
- Screen Shot 2017-05-17 at 11.41.50 PM.png (27.09 KiB) Viewed 12471 times
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
<Toggle Build Panel> option, then get below, looks like successful build, but where does it put the file?
[Wed May 17 23:53:13 2017] Processing normal_1024 (platform: espressif8266; upload_speed: 460800; build_flags
: -Wl,-Tesp8266.flash.1m128.ld -D PLUGIN_BUILD_NORMAL -D BUILD_GIT='""'; board: esp12e; framework: arduino)
--------------------------------------------------------------------------------
Build environment is clean
========================= [SUCCESS] Took 0.50 seconds =========================
================================== [SUMMARY] ==================================
Environment normal_1024 [SUCCESS]
Environment normal_4096 [SKIP]
Environment normal_8285 [SKIP]
Environment test_1024 [SKIP]
Environment test_4096 [SKIP]
Environment test_8285 [SKIP]
Environment dev_1024 [SKIP]
Environment dev_4096 [SKIP]
Environment dev_8285 [SKIP]
========================= [SUCCESS] Took 0.50 seconds =========================
[Wed May 17 23:53:13 2017] Processing normal_1024 (platform: espressif8266; upload_speed: 460800; build_flags
: -Wl,-Tesp8266.flash.1m128.ld -D PLUGIN_BUILD_NORMAL -D BUILD_GIT='""'; board: esp12e; framework: arduino)
--------------------------------------------------------------------------------
Build environment is clean
========================= [SUCCESS] Took 0.50 seconds =========================
================================== [SUMMARY] ==================================
Environment normal_1024 [SUCCESS]
Environment normal_4096 [SKIP]
Environment normal_8285 [SKIP]
Environment test_1024 [SKIP]
Environment test_4096 [SKIP]
Environment test_8285 [SKIP]
Environment dev_1024 [SKIP]
Environment dev_4096 [SKIP]
Environment dev_8285 [SKIP]
========================= [SUCCESS] Took 0.50 seconds =========================
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
In my Linux machine PlatformIO puts the binaries in a hidden folder called ¨ .pioenvs ¨ ( note the dot in front of the name, meaning it is hidden). Every compile option creates itś own subfolder in .pioenvs and places the binfile as firmware.bin there.
Re: Compiling with PlatformIO (on Mac...)
Thank you Costo, I do see that hidden folder, but compiled image not there...
- Attachments
-
- Screen Shot 2017-05-18 at 9.21.13 AM.png (42.06 KiB) Viewed 12428 times
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
My folder looks like this
To get these files in the .pioenvs folder I opened the ESPEasy2.8.ino file (renamed it myself) , then pressed F7 and choose PIO Build. Then PlatformIO was busy for a few minutes and was compiling all the different options and placed the output files in this .pioenvs folder.
As say´d my system is on Linux-OS , not MAC, so your files may be placed in another place ?
To get these files in the .pioenvs folder I opened the ESPEasy2.8.ino file (renamed it myself) , then pressed F7 and choose PIO Build. Then PlatformIO was busy for a few minutes and was compiling all the different options and placed the output files in this .pioenvs folder.
As say´d my system is on Linux-OS , not MAC, so your files may be placed in another place ?
Re: Compiling with PlatformIO (on Mac...)
Thank you Costo. I now tried to get going with PlatformIO again. Updated atom, platformIO, etc, downloaded ESPEasy-2.0.0-dev10, went to the src file, and opened ESPEasy.ino.
Pressed F7 for the 'overview of the possible versions to build', but only get 'No target found'.
Does anybody know where the F7 instructions are controlled, and how I can move forward on using PlatoformIO on Mac?
Pressed F7 for the 'overview of the possible versions to build', but only get 'No target found'.
Does anybody know where the F7 instructions are controlled, and how I can move forward on using PlatoformIO on Mac?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
Try this:
Do not simply open the ESPEasy.ino.
In Atom/Platformio use "Open Project"
and add the Folder above "src", "dist",".github" etc.
Then in the left pane go to ESPEasy.ino and open it, press F7 etc etc.
Regards
Shardan
Do not simply open the ESPEasy.ino.
In Atom/Platformio use "Open Project"
and add the Folder above "src", "dist",".github" etc.
Then in the left pane go to ESPEasy.ino and open it, press F7 etc etc.
Regards
Shardan
Regards
Shardan
Shardan
Re: Compiling with PlatformIO (on Mac...)
Thank you. Nope, still not working. Any other way to compile, or where are the def's carried that comes up under F7 ?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: Compiling with PlatformIO (on Mac...)
Something in your Platformio setup has gone wrong,.. i followed the Howto in the wiki and it works.
Anyways, you may use the arduino ide for compiling, a howto is in the wiki.
Just i've seen many people run into problems when using the arduino ide for flashing.
Choose "Export Binary File" and use the flash tool delivered with the ESPEasy 2.0.0 zip file.
Regards
Shardan
Anyways, you may use the arduino ide for compiling, a howto is in the wiki.
Just i've seen many people run into problems when using the arduino ide for flashing.
Choose "Export Binary File" and use the flash tool delivered with the ESPEasy 2.0.0 zip file.
Regards
Shardan
Regards
Shardan
Shardan
Solved: Compiling with PlatformIO (on Mac...)
Thank you all, I got it working.
the instructions on wiki letscontrolit is not that clear.
Like contributor @Domosapiens earlier on this post stated, open the directory which contains:
the instructions on wiki letscontrolit is not that clear.
Like contributor @Domosapiens earlier on this post stated, open the directory which contains:
Code: Select all
Use File> Add Project Folder, then select the directory Source (containing .pioenvs, lib and src)
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Who is online
Users browsing this forum: No registered users and 1 guest