Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: How to compile on laptop, and upload with RaspberryPi

  1. #1
    Junior Member
    Join Date
    Feb 2016
    Posts
    10

    How to compile on laptop, and upload with RaspberryPi

    I have read the thread from 2012 about building for and uploading to Teensy from RaspberryPi: https://forum.pjrc.com/threads/3654-...berry-Pi/page2. I assume it is still not possible to just set up the Teensyduino IDE on a Raspberry. If I read correctly it should be possible to build on a normal linux machine and then use the RaspberryPi version of the teensy loader to upload the built machine code. Am I right about that?

    Could someone please explain how to do this? Perhaps using the Blink.ino as an example.

    Fx I have not found where my laptop puts the hex files mentioned in the threads. Preferably I would like to run the teensy loader via ssh, so I won't need to set up a VNC server on the RaspberryPi. Is that possible?

    Sincerely

  2. #2
    Junior Member
    Join Date
    Aug 2015
    Posts
    18
    It looks like it is possible to run the IDE on a Raspberry Pi: http://razzpisampler.oreilly.com/ch10.html

    Relating to your other question, if you go to the teensy loader on a computer and click the little "page" icon it will ask you if you want to manually choose the .hex file to load but also should show you where it was last pointing.

  3. #3
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    299
    I'm having some success using Platformio command line environment to build and upload from my Raspberry Pi 2. Much faster than the Arduino IDE.

    I hit a bug that the Platformio team gave me a workaround for very quickly.

  4. #4
    Junior Member
    Join Date
    Aug 2015
    Posts
    18
    Oh yea, Platformio for Atom is awesome. I would definitely check that out.

  5. #5
    Junior Member
    Join Date
    Feb 2016
    Posts
    10
    Quote Originally Posted by jakezimmer View Post
    It looks like it is possible to run the IDE on a Raspberry Pi: http://razzpisampler.oreilly.com/ch10.html
    It is certainly possible to program a regular Arduino from a RaspberryPI, but I believe it is not possible with a Teensy.

  6. #6
    Junior Member
    Join Date
    Aug 2015
    Posts
    18
    Then I would try blackketter's method and use Platformio and Atom as these can upload directly to Teensys:

    http://platformio.org/
    https://atom.io/

    Install help: http://docs.platformio.org/en/latest...l#installation

  7. #7
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    299
    Quote Originally Posted by maren View Post
    It is certainly possible to program a regular Arduino from a RaspberryPI, but I believe it is not possible with a Teensy.
    I'm doing it fine using teensy_loader_cli as provided by Platformio with a Teensy 3.1 and Raspberry Pi 2.

  8. #8
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    Compile on an RPi?

  9. #9
    Junior Member
    Join Date
    Aug 2015
    Posts
    18
    Yep, platformio is a plugin that allows for compilation inside of the Atom text editor.

    If you have any trouble try this thread: https://discuss.atom.io/t/raspberry-pi-2/16446/8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •