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

Thread: Programino IDE -- Teensy configuration

  1. #1
    Senior Member
    Join Date
    Oct 2015
    Posts
    227

    Programino IDE -- Teensy configuration

    I recently found the Programino IDE and really like it's editor. However, I'm not clear on how to add and configure a Teensy board. Is anyone else using this IDE with their Teensy?

    Thanks...

  2. #2
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    One of the things I need to tell Programino is what the sketch uploader is and where it is located.

    Where is the Teensydunio uploader located?
    Last edited by rfresh737; 06-30-2018 at 02:29 AM.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    It is hardware/tools/teensy_post_compile.

    To see the command syntax, in Arduino's File > Preferences, turn on verbose output during upload.

  4. #4
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    I see this in the Ardunio IDE when I upload:

    C:\Program Files (x86)\Arduino\hardware\teensy/../tools/teensy_post_compile -file=FS1000Main1.0.0.ino -path=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_ build_125497 -tools=C:\Prog ram Files (x86)\Arduino\hardware\teensy/../tools -board=TEENSY31 -reboot -port=usb:0/1D0000/0/1/3/1 -portlabel=hid#vid_16c0&pid_0478#8... (Teensy 3.2) Bootloader -portprotocol=Teensy

    Attached is the dialog I have to fill in.

    I added "C:\Program Files (x86)\Arduino\hardware\teensy/../tools/teensy_post_compile" but that gave this message: Programmer *.exe or *.bat not found, please check the path settings!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	2018-06-29_193212.png 
Views:	21 
Size:	19.2 KB 
ID:	14123  

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    PJRC only officially supports use by the Arduino IDE. While I can point you to the command line utils, that's the most I can do to help.

    Maybe ask the Programino folks for help from here?

  6. #6
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    I did post for help on configuring the Teensy on their Contact Us link a few days ago but so far no response.

    Thanks Paul. I'll keep playing around with it and see if I can stumble on the right set up. I'm only using the Programino IDE because it's got such a great editor but their support isn't very timely.

  7. #7
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    2,797
    Quote Originally Posted by rfresh737 View Post
    I did post for help on configuring the Teensy on their Contact Us link a few days ago but so far no response.

    Thanks Paul. I'll keep playing around with it and see if I can stumble on the right set up. I'm only using the Programino IDE because it's got such a great editor but their support isn't very timely.
    Note, you can configure the Arduino IDE to use an external editor. So if you can get to the Programino IDE editor outside of the IDE, it might be a solution.

  8. #8
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    Hi Michael,

    I just configured it that way. It's a work around, but it is usable that way. Thank you.

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    Maybe try all backslashes '\' as Windows normally uses, rather than a combination of '\' and '/'. Arduino is using Java and most of the native stuff is built it mingw (lots of unix stuff emulated), so both types of slashes tend to work. But maybe Programino is built with Windows-only stuff that only allows '\'?

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,966
    My windows path to that is :: "T:\arduino_1.8.5_142\hardware\tools\teensy_post_c ompile.exe"

    That is an UnZip install to 'T:\arduino_1.8.5_142' versus "C:\Program Files (x86)"

    Maybe one of two things:
    >> paths with spaces - at least at the command line - need the double quotes. Would expect code string should resolve that though as that not Teensy unique if others use such a bootloader path.
    >> As Paul noted Windows uses backslash for disk path separator

    Making a fresh UnZip copy install of the IDE like above ( then TeensyInstaller on that path ) - perhaps to the root of a drive into a folder with no spaces in the name - and point Programino to that?

  11. #11
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    Hmmm...some success (I think).

    I used this string: C:\Program Files (x86)\Arduino\hardware\tools\teensy_post_compile.e xe

    Code:
    Verify and upload code please wait... Done!
    Last verify at: 07:40:28
    
    quit
    
    teensy_post_compile - inform the Teensy Loader of freshly compiled code
    
    Usage:
       teensy_post_compile -file=<file> -path=<path> -tools=<toolspath>
    
           <file> - The code to program (without .hex) to your Teensy board
           <path> - The directory where <file.hex> is located
           <toolspath> - The directory where the Teensy Loader is located
    So then I tried this string: C:\Program Files (x86)\Arduino\hardware\tools\teensy_post_compile.e xe -file=<file> -path=%PATH% -tools=%PATH%

    but that produced this message:

    Code:
    Verify and upload code please wait...
    Programmer *.exe or *.bat not found, please check the path settings!
    I guess I'll just have to use Programino as an external editor (sigh).
    Thank you all for trying to help!

  12. #12
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,966
    An unzip install and starting over to a non-spaced path might fix that. Adding the params with spaces in the path must be confusing the second example.

    Perhaps make the path "C:\Program Files (x86)" into a drive letter? { …. below … }

    <Edit> SUBST … https://www.wikihow.com/Map-a-Folder...ter-in-Windows
    Last edited by defragster; 06-30-2018 at 04:32 PM.

  13. #13
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    I installed Ardunio and Teensydunio into C:\Ardunio but that didn't seem to help any.

    Unless and until I get a reply from the Programino developer, I will just use Programino as an external editor.

  14. #14
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,966
    That rules out some obvious stuff from Windows end and Teensy - hopefully those guys can repro and fix.

  15. #15
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    Quote Originally Posted by rfresh737 View Post
    So then I tried this string: C:\Program Files (x86)\Arduino\hardware\tools\teensy_post_compile.e xe -file=<file> -path=%PATH% -tools=%PATH%
    That definitely does not look right.

    -path needs to be the directory where the .hex file is located.

    -toolspath needs to be the directory where teensy.exe is located.

    These are almost certainly not the same.

  16. #16
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    Thanks for that help Paul.

    Below is the new string based on your above comment, but I am still getting the same error:

    Code:
    Verify and upload code please wait...
    Programmer *.exe or *.bat not found, please check the path settings!
    The new configuration string:

    Code:
    C:\Arduino\hardware\tools\teensy_post_compile -file=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_build_122803 -tools=C:\Arduino\hardware\tools
    Below is the Ardunio IDE upload verbose string which I tried but still no go. I guess I'll have to hope that the developer responds to my request for help.

    Code:
    "C:\Arduino\hardware\teensy\tools\teensy_post_compile" "-file=FS1000Main1.0.0.ino" "-path=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_build_122803" "-tools=C:\Arduino\hardware\teensy\tools\" "-board=TEENSY31"

  17. #17
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    Quote Originally Posted by rfresh737 View Post
    The new configuration string:

    Code:
    C:\Arduino\hardware\tools\teensy_post_compile -file=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_build_122803 -tools=C:\Arduino\hardware\tools
    In this case, you've put both the file and path under "-file=", rather than putting on the file on "-file-" and the path on "-path-".

    It will not recognize you've used a full pathname under "-file=" and split it for you. This is a command line utility which isn't meant to be run by humans. It expects very specific inputs which normally come from other software.

  18. #18
    Senior Member
    Join Date
    Oct 2015
    Posts
    227
    Code:
    C:\Arduino\hardware\tools\teensy_post_compile -file=FS1000Main1.00.hex -path=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_build_122803 -tools=C:\Arduino\hardware\tools
    I think this is correct now.

    -file=FS1000Main1.00.hex

    -path=C:\Users\RFRESH~1\AppData\Local\Temp\arduino_ build_122803 [where the hex file is located]

    -tools=C:\Arduino\hardware\tools [where teensy.exe is located]

    But still getting the same error. I think I'll just wait for the developer to respond and then post the correct line back here in case anyone else wants to know how to do it.

    Thank you Paul.

  19. #19
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,495
    As a quick sanity check, you can try typing or copy-paste that line to a command prompt window. If it works when entered at a command prompt, that'll give you something more substantial to say when/if the Programino developers respond...

    Don't forget the -reboot if you want to do more than just cause Teensy Loader to open the file and be ready for a manual button press (as happen at the end of Verify from Arduino).

    You might also use Teensy Loader's Verbose Info window (hidden in the Help menu) to see if it's hearing the result of these commands. Compare what happens when Ardiuno does it. At the very least, you should see Teensy Loader receive the info and open your HEX file.

Posting Permissions

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