blackketter
Well-known member
Well, it's hard to definitively say but I've done PlatformIO builds and uploads using a Raspberry Pi. Not super fast, but has been reliable for me.
Can PlatformIO be a an alternative, like can I SSH into the Linux board and have PlatformIO compile and flash the connected Teensy with the sketches I developed on my main rig? Keeping in mind I do my main development in Arduino IDE and that I need customised libraries (shakes fist at Particle).
Arduino 1.8.3 on ARM Linux throwsI have not played at all with platform IO.
But earlier I did play some with trying to run Arduino build headless... As if you look at the release notes for 1.8.0, one of the points was:
* Linux: running in command line mode doesn't require an X11 display anymore
So I tried it. With the Teensy I was able to run the compiler, but the load of the Teensy program to upload failed. I thought about editing the boards.txt or like to see about maybe using command line version of loader... But have not tried yet.
Picked up JAVA_TOOL_OPTIONS:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:117)
at processing.app.Base.<init>(Base.java:211)
at processing.app.Base.main(Base.java:140)
That's only in the paying version?No need to open any SSH ports or etc. Just start PIO Remote Agent on RPi and program connected devices from anywhere in the world. See
- http://docs.platformio.org/page/plus/pio-remote.html
That's only in the paying version?
That's only in the paying version?
Can you btw confirm that I can use code made in Arduino with custom libraries on Platformio?
I have not tried too much with 1.8.3 as there is no teensyduino to install on it yet... I do have a version of 1.8.1 with 1.36 Teensyduino installed, where I was able to program a teensy, with a command that looks something like: arduino --verbose-build --upload --preserve-temp-files --port /dev/ttyACM0 ~/arduino-1.8.1/examples/01.Basics/Blink/Blink.inoArduino 1.8.3 on ARM Linux throws
It should have been fixed with this merge, but alas.Code:Picked up JAVA_TOOL_OPTIONS: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:117) at processing.app.Base.<init>(Base.java:211) at processing.app.Base.main(Base.java:140)
That's only in the paying version?
Can you btw confirm that I can use code made in Arduino with custom libraries on Platformio?
In file included from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WProgram.h:37:0,
from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/Arduino.h:1,
from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/IPAddress.cpp:1:
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h: In function 'boolean isAscii(int)':
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h:64:22: error: 'isascii' was not declared in this scope
return ( isascii (c) == 0 ? false : true);
^
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h: In function 'int toAscii(int)':
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h:146:20: error: 'toascii' was not declared in this scope
return toascii (c);
^
In file included from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WProgram.h:37:0,
from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/Arduino.h:1,
from /Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/Stream.cpp:23:
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h: In function 'boolean isAscii(int)':
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h:64:22: error: 'isascii' was not declared in this scope
return ( isascii (c) == 0 ? false : true);
^
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h: In function 'int toAscii(int)':
/Users/joe/.platformio/packages/framework-arduinoteensy/cores/teensy3/WCharacter.h:146:20: error: 'toascii' was not declared in this scope
return toascii (c);
^
*** [.pioenvs/teensy36/FrameworkArduino/IPAddress.o] Error 1
*** [.pioenvs/teensy36/FrameworkArduino/Stream.o] Error 1
From what I read on the PlatformIO site, Teensy doesn't support debugging. Bummer.
It's not on this list:
http://docs.platformio.org/en/latest/plus/debugging.html
Does anyone know if it's possible to get the pio command to generate a Makefile? I want to experiment with another compiler and don't have time to create a complex makefile by hand.