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

Thread: Issue w/ Teensyduino 1.42 install

  1. #1

    Issue w/ Teensyduino 1.42 install

    Hello All,

    Having issue installing Teensyduino 1.42. Win 10 all recent updates, AMD FX 3.30GHz, 12GB ram 64 bit os, x64 based processor. Can't seem to create correct lib/version.txt file for Arduino. Arduino version 1.8.5 and just updated with fresh download this evening. Tried https://forum.pjrc.com/threads/52649...uino+1.42+Beta and the version on https://www.pjrc.com/teensy/td_download.html

    Tried turning off all malware, spyware, defender, etc. Tried install as admin. Tried multiple file locations and names libraries/txt, lib/version.txt, lib/version.txt lib/1.8.5.txt etc....

    currently, arduino fresh download is located C:/Program Files (x86)/Arduino/lib/version.txt/

    still get the empty next sign no matter what I have tried. Suspect a simple answer, tried net searches , and forum searches...maybe someone has a tip?

    Thx in advance
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	teensy.JPG 
Views:	38 
Size:	112.1 KB 
ID:	14383  

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,627
    If it is a release build Arduino 1.8.5 from the web then TeensyduinoInstaller should recognize that in folder >> C:/Program Files (x86)/Arduino

    lib directory is not where it should be pointed.

    Indeed the installer may need to be run 'As Administrator' to install to that directory. For past years I've been doing ZIP installs to a root directory - not using IDE's installer and not putting in the ' C:/Program Files (x86)' directory.

  3. #3
    Thx for reply.

    Could not get ZIP install to root directory to work.

    tried moving out of x86
    C:/Program Files/Arduino-1.8.5
    C:/Program Files/Arduino
    C:/Program Files/Arduino-1.8.5/lib/version.txt
    C:/Program Files/Arduino/lib/1.42.txt
    C:/Program Files/Arduino/version.txt

    tried to put it on desktop too. Initially Arduino was in my documents folder, which Teensyduino installer points to , so I tried moving Arduino files back to this location and no luck either.

    I could uninstall newest version of Arduino and go back to Arduino 1.8.1 and try teesyduino 1.42 or 1.39? but I really don't want to . Teensyduino installer is still not recognizing the version.txt folder. This is to develop code for a Teensy 3.2 using arduino IDE.

    PS: Teensy installer recognizes win 10 serial driver no problem....

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,627
    It won't recognize the lib folder where version.txt is. It needs to be in the /Arduino folder where it will find the core files it checks proper versions for modifications.

    Not sure why root ZIP failed - maybe protected if not Admin? I put in root on another drive created for this.

    it doesn't have to be the root - if you can make a root folder it should unzip there.

  5. #5
    OK. well I tried uninstalling 1.8.5 and installing 1.8.1 This loaded to C:/Program Files (x86)/Arduino and then I added version.txt file so that now there is C:/Program Files (x86)/Arduino/version.txt . C:/Program Files (x86)/Arduino was pointed to by the Teensy installer, but still not seeing the version.txt file

    no luck... I think I would need better instructions on how to create root ZIP...specifically the location ...inside Arduino?

    unfortunately, have to go to work now. will check back in 12 hours! Thx for your help
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	teensy1.jpg 
Views:	24 
Size:	115.8 KB 
ID:	14386  

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    You need the 1.8.5 download from Arduino.cc's download page.

    https://www.arduino.cc/en/Main/Software

    They have 3 downloads for Windows. 2 of these work. Both the "installer, for Windows XP and up" and "ZIP file for non admin install" work fine. The "Windows app Requires Win 8.1 or 10" does not work. Do not get the Windows app version!

    Both of these come with the versions.txt file. It will be in the "lib" folder after you install or extract. DO NOT manually add this file. The installer does many more checks, including verifying checksums on portions of Java bytecode inside Arduino's JAR files. If you have an unsupported copy of Arduino, you're not going to easily fool the installer by just copying a text file. It's much, much smarter than that.

  7. #7
    Thank you very much, Paul! I was so focused on the win 10 version that I never saw the others. I used the 'XP and up' version. Really appreciate your help. Works seemlessly.

    And my Teensy 3.2 just came in the mail today, perfect timing.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	ard3.jpg 
Views:	20 
Size:	102.9 KB 
ID:	14397   Click image for larger version. 

Name:	ard1.JPG 
Views:	16 
Size:	120.7 KB 
ID:	14398  

    Click image for larger version. 

Name:	ard2.JPG 
Views:	23 
Size:	247.4 KB 
ID:	14399  

  8. #8
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,627
    Sorry post #2 'Arduino 1.8.5 from the web' wasn't clear - I never paid attention to Win 10 install on that page - that is right on the machine in the stupid store.

    Would have been right - and better - if the ZIP install had worked.

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    For 1.43 we probably need a better message about the unsupported "app" version.

  10. #10
    Agree, Paul.

    No problem, defragster. I appreciate your help. I am sure I will be back with coding questions. Going to use the Teensy 3.2, either though PWM(PPM) or SBUS, to control a Robersonics Tsunami wav board. Should be an interesting project.

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    I'm trying to find a way to improve the installer, to better advise anyone who has the "app store" version of Arduino.

    Looks like Windows installs app store stuff in C:\Program Files\WindowsApps. But that folder seems to have very special access restrictions.

  12. #12
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    I've added "Windows installer & zip are supported, but Windows "app" can not be used." to the help dialog.

    Click image for larger version. 

Name:	capture.png 
Views:	33 
Size:	62.2 KB 
ID:	14564

    I'd really like to find a way to check if the app version is installed, and show a message in the main area too. Or maybe that's just overkill?

  13. #13
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,627
    Can you run this? It runs from Windows PowerShell.

    https://www.groovypost.com/howto/fin...on-windows-10/

    Code:
    Get-AppXPackage *Calculator*
    Or does it add any shell variable that they create you could query for?

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    Looks like the App Store version creates an "ArduinoData" folder in your Documents folder. Inside is a preferences.txt file, and at least 1 line in that file has the inaccessible "WindowsApps" path. I'm working on some code to check if that folder and prefs file exists, and open that prefs file and parse for "WindowsApps\ArduinoLLC".

  15. #15
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,352
    Ok, here's how it will look when run on any Windows machine where the ArduinoData/preferences.txt file contains a hardwarepath entry with "WindowsApps\ArduinoLLC".

    Click image for larger version. 

Name:	capture2.png 
Views:	32 
Size:	59.8 KB 
ID:	14565

    This new messages at the top of the scrolling text only appears when that file is found. The small text in the title area always appears.

    Hopefully these will help anyone who has the App Store version.

    If any Windows users have suggestions to how this could be more clear, please speak up. I personally use Linux and sometimes Macintosh for video. I almost never use Windows, so I'm not really familiar with the terminology and thinking that speaks to Windows users.

  16. #16
    Thx, Paul. I think this is very helpful. I also want to let you know that the Teensy3.2 has been working like a champ. Sometimes, with other microprocessor/USB designs, the USB port recognition is an issue. ZERO Teensy issues connecting or with installing many different arduino IDE based programs.

  17. #17
    Paul, i'm responding here from an issue i raised in another thread. when installing arduino as an app the install process was handed off to the windows store and it seemed to finish successfully in that the ide would start, run and quit properly. however when installing teensyduino the initial screen that asks for the directory of the arduino install did not list any correct path to the arduino install, there was no error message from either teensyduino installer or the windows app side. it was simply the screen that asked what directory arduino was installed in and that screen offered no path solutions that were accepted by the installer and then allowed "next" to be entered. i should add i'm running version 1803/os build 18219.1000 which is the "skip ahead" copy of win10 at the moment.

  18. #18
    Junior Member
    Join Date
    Sep 2018
    Posts
    1

    Fixed my problem as well, thanks Paul.

    Quote Originally Posted by PaulStoffregen View Post
    You need the 1.8.5 download from Arduino.cc's download page.

    https://www.arduino.cc/en/Main/Software

    They have 3 downloads for Windows. 2 of these work. Both the "installer, for Windows XP and up" and "ZIP file for non admin install" work fine. The "Windows app Requires Win 8.1 or 10" does not work. Do not get the Windows app version!

    Both of these come with the versions.txt file. It will be in the "lib" folder after you install or extract. DO NOT manually add this file. The installer does many more checks, including verifying checksums on portions of Java bytecode inside Arduino's JAR files. If you have an unsupported copy of Arduino, you're not going to easily fool the installer by just copying a text file. It's much, much smarter than that.

    My first use of Teensy. The issue was fixed by your suggestion. Thanks.

Posting Permissions

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