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

Thread: Installing Teensyduino on an Arduino portable

  1. #1

    Installing Teensyduino on an Arduino portable

    Hi guys!
    I just discovered that arduino can run as a portable installation, this can be really helpful for me for keeping teensy projects separate from other projects.

    I installed teensyduino without any problems on the portable directory but if I try to compile I got the following error:

    Opening Teensy Loader...
    Unable find Teensy Loader. (p) Is the Teensy Loader application running?
    Error compiling for board Teensy 3.6.
    I suppose the automatic loading of teensy loader is not finding it, is there any way to make it work?

    I'm running Ubuntu 17.04


    Thanks
    Lorenzo

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,673
    The path to the teensy loader is defined in platform.txt in Arduino/hardware/teensy/avr/

    Code:
    ## Teensy Loader
    tools.teensyloader.cmd.path={runtime.hardware.path}/../tools
    tools.teensyloader.upload.params.quiet=
    tools.teensyloader.upload.params.verbose=-verbose
    tools.teensyloader.upload.pattern="{cmd.path}/teensy_post_compile" -test "-file={build.project_name}" "-path={build.path}" "-tools={cmd.path}" "-board={build.board}" -reboot
    But it seems that compiler.path uses the same "runtime.hardware.path" :
    Code:
    compiler.path={runtime.hardware.path}/../tools/
    so, if compilation works, the loader should start, too.
    Did you check the rights and is it marked as executable ?
    Last edited by Frank B; 06-27-2017 at 09:13 PM.

  3. #3
    Interesting in the /tools/ folder I don't have any teensy loader....
    Installation (1.37) went fine, can be that is installed somewhere else? Is there any way to install it manually?

    Thank you
    Lorenzo

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,673
    Quote Originally Posted by lorenzofattori View Post
    Interesting in the /tools/ folder I don't have any teensy loader....
    Installation (1.37) went fine, can be that is installed somewhere else? Is there any way to install it manually?

    Thank you
    Lorenzo
    Just Install Arduino/teensyduino the normal way and copy it.
    The name is just "teensy" (Windows: teensy.exe), but i think you need the other executables, too.
    Last edited by Frank B; 06-28-2017 at 07:23 PM.

  5. #5
    Quote Originally Posted by Frank B View Post
    Just Install Arduino/teensyduino the normal way and copy it.
    The name is just "teensy" (Windows: teensy.exe), but i think you need the other executables, too.
    That's what I wanted to avoid since the beginning.
    I will try to locate if it's somewhere in the computer and copy it.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,176
    I tried this just now, but I could not reproduce the problem.

    Click image for larger version. 

Name:	sc.png 
Views:	83 
Size:	211.5 KB 
ID:	10942

    I tested on Ubuntu 14.04. I extracted a copy of Arduino 1.8.3 and created an empty "portable" folder within. I ran it, and sure enough it was not using my normal prefs or sketchbook folder. It didn't see any of the other boards I have installed, only the AVR boards appeared in the menu. Then I closed Arduino and ran the Teensyduino installer. I used 1.38-beta1.

    When I run it, Teensy is in the menu. As you can see in the screenshot, I was able to compile and upload the blink example. The Teensy 3.6 on my desk is blinking (previously it was programmed with Wire lib test code).

    I just tried a couple more times, closing the Teensy Loader window. Every Verify or Upload is able to run Teensy Loader again. It seems to be working properly. I'm simply not seeing the error you had.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,176
    Quote Originally Posted by lorenzofattori View Post
    Interesting in the /tools/ folder I don't have any teensy loader....
    Installation (1.37) went fine, can be that is installed somewhere else? Is there any way to install it manually?
    The "teensy" program (and also "teensy_post_compile" and "teensy_reboot") are supposed to be in the "hardware/tools" folder.

    Here's a screenshot of the way it's installed on my copy which works. Maybe you ended up with something different than this?

    Click image for larger version. 

Name:	sc.png 
Views:	90 
Size:	65.6 KB 
ID:	10943

  8. #8
    Quote Originally Posted by PaulStoffregen View Post
    The "teensy" program (and also "teensy_post_compile" and "teensy_reboot") are supposed to be in the "hardware/tools" folder.

    Here's a screenshot of the way it's installed on my copy which works. Maybe you ended up with something different than this?

    Click image for larger version. 

Name:	sc.png 
Views:	90 
Size:	65.6 KB 
ID:	10943
    Thank you Paul for the info!
    The files are there:

    Click image for larger version. 

Name:	Screenshot from 2017-07-03 18-39-36.jpg 
Views:	86 
Size:	119.5 KB 
ID:	10947

    but seems that Teensy is not capable to load them.
    I started teensy from terminal and then is compiling fine!

    no idea why is not working directly, but at least i can compile...

    The platform.txt file:
    ## Teensy Loader
    tools.teensyloader.cmd.path={runtime.hardware.path }/../tools
    tools.teensyloader.upload.params.quiet=
    tools.teensyloader.upload.params.verbose=-verbose
    tools.teensyloader.upload.pattern="{cmd.path}/teensy_post_compile" -test "-file={build.project_name}" "-path={build.path}" "-tools={cmd.path}" "-board={build.board}" -reboot

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,176
    When the compile finishes, the Teensy Loader window is supposed to appear. You can see it in the screenshot I posted on msg #6.

    Are you getting that Teensy Loader window? If so, the files are perfectly fine.

    After the Teensy Loader window appears, the teensy_post_compile program is run. It tries to send localhost communication to the Teensy Loader program, to inform it of the freshly compiled file. If the Teensy Loader is appearing, perhaps the files are perfectly fine, but something is strangely configured on your machine that's preventing this localhost communication between the programs? Maybe a restrictive firewall? That's extremely unusual on Linux... usually we only see that from Zone Alarm on Windows. But if the window is coming up, that's the place to look.

    Teensy Loader has a hidden feature to show you verbose info, including info about the communication it's getting from the Arduino side. You can find it the help menu.

  10. #10
    Quote Originally Posted by PaulStoffregen View Post
    When the compile finishes, the Teensy Loader window is supposed to appear. You can see it in the screenshot I posted on msg #6.

    Are you getting that Teensy Loader window? If so, the files are perfectly fine.

    After the Teensy Loader window appears, the teensy_post_compile program is run. It tries to send localhost communication to the Teensy Loader program, to inform it of the freshly compiled file. If the Teensy Loader is appearing, perhaps the files are perfectly fine, but something is strangely configured on your machine that's preventing this localhost communication between the programs? Maybe a restrictive firewall? That's extremely unusual on Linux... usually we only see that from Zone Alarm on Windows. But if the window is coming up, that's the place to look.

    Teensy Loader has a hidden feature to show you verbose info, including info about the communication it's getting from the Arduino side. You can find it the help menu.
    nope, Teensy Loader is not opening after compile, and it gives an error like post #1
    if I run manually teensy loader from terminal, then I can program my teensy without any issue

Posting Permissions

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