Teensyduino lib/version.txt - not found

I runing Win10 working with a Teensy 4.0 controller. I am attempting to install the teensyarduino software, but when I get to the point where it's asking for me to select the Arduino Library, I cannot find it. I've searched my hard drive for version.txt and it does not exist. I am running the Arduino 2.3.7 software and even the Teensy board gui. I connect to the board and even run the blink.ino sketch. But I've told I need to run Teensyduino and I have been able to get a clean install.
Any guidance would be greatly appreciated.

The looking for your Arduino IDE is for the IDE 1.8x type installs.

For Arduino IDE 2.x, you use the board manager.
There are instructions on the PJRC web page:

Teensyduino: Teensy support for Arduino IDE

But simply put, you start your install of IDE. Bring up Preferences:
ctrl+, on windows machine or in File menu.

At the bottom of it, there is a section for additional URLS, I usually use the
button, to bring it up in a list: Here is crude picture showing it

You add the string, to your existing list.
https://www.pjrc.com/teensy/package_teensy_index.json

Close out the preferences dialog, hopefully the system then downloads the information. You then go the board manager tab and look for Teensy, like:


And install it.

Note: my list here is showing that I have the latest beta Teensy boards. To use the latest beta you should look up at the PJRC forum, which has
under announcements a post about the current releases/betas, latest one:
Here is a sixth beta test for Teensyduino 1.60 | Teensy Forum

The difference in the instructions, is the string to add for the boards manager.

Thank you for the response. All that looks familiar as steps that I have taken. I will not be able to get to it for a few days but I look forward to trying and hopefully it will resolve my issue.

Thank you for your assistance. I apologize in advance for the length of my response, but I wanted to be thorough in hopes it would help.

I have installed and uninstalled the Arduino software 3 times. Each time following the Get Started instructions on the PJRC site. (the next two screenshots are mine that correspond you the ones in your response)

image.png

This all started with me compiling code provided for the Guest Book project audio-guestbook/platform.txt at main ยท playfultechnology/audio-guestbook

I got the "MTP_Teensy.h Not Found" error and went to Fix* it, including downloading the file as instructed but I don't have any of those directories. I have nothing related to Arduino in my Program (x86) directory or anything close to this directory "\Arduino\hardware\teensy\avr\libraries" as indicated in the resolution below. I do not have \Adruino\hardware and all and directories for \teensy, \avr, \libraries are buried deep all over my directory structure. What I have is so different that I took a number of screenshots of some of my directory structure as an illustration.

I can access my teensy board and run the code to blink the LED on my Teensy but this fatal error has been dead in the water for my Guest Book project. Audio Guestbook

*Fix

image.png

image.png

Sorry none of your images are showing up.

I also would suggest that if you have not already done so, that you open a thread on the PJRC forum about this.

What's new | Teensy Forum

With the MTP stuff, how you do that now depends on which build you are using.
For example if you are using one of the betas, Paul Stoffregen (owner of PJRC) has merged in some of the MTP stuff into the core, which you can access by
setting the USB type to either just MTP or MTP plus Serial.

Once you are setup, I would recommend starting with one of the simple MTP example sketches to make sure things are working and potentially show you what things that may have changed.

You are still using information that is written for TeensyDuino. That information is incorrect when using Arduino IDE 2.x with the "Teensy" boards platform.

When using the "Teensy" platform, the equivalent path is here:

C:\Users\<username>\AppData\Local\Arduino15\packages\teensy\hardware\avr\<version>\libraries

(Where <username> is your Windows username, and <version> is the version of the "Teensy" platform you have installed)


:red_exclamation_mark: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "โ˜ Hidden items".


It appears that because I am a new user I am limited to what I can add to my responses. I do know to what you are referring when you mention MTP. I had no idea that just loading the software would end up being such a difficult part of this project. I will act on your suggestions. Thank you

This looks like a great lead. I, at least, recognize those directories. So not TeensyDuino only Teensy? Right church, wrong pew.

That is not the cause of the broken images. The cause of the broken images is that you tried to hotlink images from a URL in an email:

That URL is only accessible when logged into your Google account, so the image embeds are broken when the forum software attempts to access them.

The correct way to embed images to your posts is through any one of the following methods:

You can then add the screenshot to a reply here by clicking the "Reply" button here and then doing either one of the following:

  • Drag and drop the image into the reply field on the forum page.
  • Download the image to your computer, click the upload button (Upload icon) in the post composer toolbar, and then select the image file.

Yes. It is a bit confusing. Teensyduino is a modified version of the Arduino IDE 1.x software. Paul Stoffregen took this approach to supporting the Teensy boards due to some technical limitations that were imposed by the official Arduino IDE 1.x.

When did a complete reworking of the Arduino IDE application for the Arduino IDE 2.x project, one of the explicit goals was to resolve the limitations that Paul Stoffregen had encountered, both in order to effectively support the Teensy board family, as well as for the larger goal of ensuring the same types of limitations wouldn't be encountered by any of the diverse and ever growing ecosystem of hardware supported by Arduino IDE. We we successful in that goal and Paul was able to switch to using the standard Arduino boards platform framework we provide to allow Arduino IDE to support arbitrary boards.

So TeensyDuino is only something that is used by those who can't or won't join us in 2026 and use the modern Arduino IDE. For everyone using Arduino IDE 2.x, it is obsolete and a we have a more friendly way to use our Teensy boards by simply installing the "Teensy" boards platform via the Arduino IDE Boards Manager.

I do not have that version of board. It looks like it may have been upgraded from 1.57 to 1.59

Is it possible they merged and do not user the old Teensy IDE directory structure?

I have added the https://www.pjrc.com/teensy/package_teensy_index.json text to Files>Preferences.

So, if I had it installed correctly the right time, then, part of, the problem is that I am trying to resolve issues in differently named directories, some of which do not exist.

Does this mean that the code that I am attempting to compile is an install of the IDE Teensy board, which I don't have? And any reference to libraries installed for Teensy IDE referenced in the code will need to be updated?

I can access the Teensy 4.0 board with the Arduino software, compile and run code, it's just my code referenced "called" in my code is in a directory structure that is not the same. Teensy IDE Arduino is one-way, Teensy platform boards are another?

I don't know what you mean by "that version".

As I explained in my previous reply, I used a placeholder <version> in my description of the path for the version-specific folder name component of that path. Just the same as I used the <username> placeholder for the username-specific component of that path.

So, for example, if your Window username was "wampie" and you have version 1.59 of the platform installed, then you would know to look at the following path:

C:\Users\wampie\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59\libraries

I already told you the path of the Teensy platform files on your hard drive:

There is no such thing as "Teensy IDE Arduino". Please be careful to use the correct terminology so that we can communicate effectively. Do not invent your own bespoke terminology.

I am guessing that by "Teensy IDE Arduino" you are actually referring to Teensyduino, but I should not have to guess. And if we guess wrong, then that will result in a lot of confusion and wasted time.

Good to know. Thank you. Moving forward I will follow your guidance.

To follow up on the great information from @ptillish.

With Arduino 1.x, As mentioned. The Teensyduino install would patch several places within the Arduino IDE, in order to get things to work properly for the Teensy boards. So at that time it was necessary for this install to know exactly which version of the IDE you had installed, as the patches were version specific.

Also with Arduino 1.x you could have several independent version of Arduino installed at the same time, they did not share much of anything other than
maybe they all referred to the same sketch folder. As such you needed to enter the directory as to let it know which one of your possible installs you wish to update.

With Arduino 2.x, using the Board manager you no longer need to enter any directory as, all of the 2.x releases all refer to the same location to install the stuff associated with your boards. i.e. the Teensy code, which tools to use, etc.
They all go to where the Arduino15 directory is located (depends on what type of machine you install on), Linux, Windows, MAC.

On my windows machine I am using the latest beta release, so for example all
of the code associated with the Teensy install is located at:
C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\0.60.6

Obvously your location will be different unless by chance your user name is KurtE :laughing:

OK. Team
I got past my issue that started this thread. I had to get my head wrapped around a different file structure that I needed to use and gain an understanding of the #include statement. It's all good can now that I can get past my library locations error. Now that the code compiles, I can start picking my way through the 6 errors. Cake :birthday_cake:

Thanks for the great support. It was invaluable. I learned a lot and will keep trying to answer my questions on my own by doing the research. I'm back to being happy. :wink: