Error: Unable find Teensy Loader.

acornacorn

New member
Hello, I am attempting to use the Arduino IDE with a Teensy 4.1 and I am getting an error every time I try to upload anything to the Teensy.

This is the error I am getting:

Opening Teensy Loader...
Unable find Teensy Loader. (p) Is the Teensy Loader application running?
Is a firewall (eg, ZoneAlarm) blocking localhost communication?
quitexit status 1

Compilation error: exit status 1

I have not downloaded any VPNs or anything of the sort since the last time it was working, and I checked my Windows Defender and arduino ide.exe is allowed publicly. I have also reset my laptop, tried the example blink code, and it is still not working. The teensy window is also opening.

Another person in my class who also uses a Windows laptop is having the exact problem as mine.
 
Is the IDE 1.x or 2.x?

It may have been blocked on install 'for your protection'.

Perhaps it was an install failure and remove and reinstall will correct.
 
Me too!
This started only a few days ago - and everything had been fine until then!
Windows 11, Arduino 2.3.10, Teensyduino 1.6.2 - all reinstalled without success. No VPN involved. Windows Defender temporarily turned OFF.

I can run with Tycommand, but teensy_post_compile/teensy produces this error 99% of the time, both on Verify and on Upload.
Teensy.exe does successfully launch, and opens the port listener on 3149 - but Arduino IDE apparently cannot connect to it.
I have spent hours working through all threads - and just cannot find an explanation!

(I was just researching a thought that on my PC, 'Localhost' resolves to the IP6 address '::1:' instead of 127.0.0.1, and that the IDE wants an IP4 binding. So I have been trying "netsh interface ipv6 set prefixpolicy ::1/128 precedence=5 label=0 store=active" but with only occasional success)
 
I face exactly the same problem. Started a few days ago. I use windows 11 and Arduino IDE 2.3.10. Actually tested it using Visual Studio Code + PlatformIO. Same issue :-( .. hit and miss, 1 out of 50 attempts to upload code seems to work. Re-installed Arduino IDE and teensyloader. Issue remains
 
I have encountered the same problem, in fact on all 4 computers that I own. All are Windows 11 with Arduino IDE 2.3.10 with Teensyduino from 1.59 up to the latest 1.62. I have reinstalled so many times both the IDE and Teensyduino but always the same problem, 'Unable to find TeensyLoader', which always appears before the loader actual pops up. Using Google AI I managed to confirm that the code does get compiled but the connection to the Teensyloader was not made. All the tests I was asked to do were all well above what I understand.
Did get a few success's by using 'Export Binary File' option from Sketch menu then loading the hex file manually into Teensyloader before then pressing the button on the teensy where it can be uploaded.
Not a solution and it isn't 100%.
 
Please, everyone seeing this problem, start by clearly saying which operating system version you have, and if the computer has any special networking or security software setup. These details matter!

Now to quickly explain what's going on, when you click Upload in Arduino IDE, a program called "teensy_post_compile" is run. It uses localhost (127.0.0.1) communication to tell Teensy Loader the location of your freshly compiled code, because Teensy Loader does the actual work of uploading your code. It needs to know the file Arduino IDE just created. This error "Unable find Teensy Loader. (p)" means "teensy_post_compile" tried to connect to Teensy Loader, but couldn't.

You've already said you can see the small Teensy Loader window. That's good. The first step is to click Help > Verbose Info. In that window, you're looking for a line that says "Listening for remote control". It looks similar on all operating systems. This screenshot is from Linux.

1793821830335.png


If Teensy Loader says it's listening, then the next step is to try to figure out what's blocking the connection. Remember, this is 127.0.0.1 which happens entirely local to your computer. No internet access is used.

How exactly to look into the issue is probably different on each operating system. I don't use Windows much, but I believe it's a command called "netstat".
 
Oh my, looks like Microsoft may have published a buggy update that breaks localhost. :(


People in that conversation are reporting uninstall of KB5066835 fixes recent localhost communication problem.

I'm not a Windows expert. Maybe people who know it better might chime in. But I see this on that conversation. Maybe it can help?

1793826181421.png
 
So they broke localhost a little over a year ago, rolled it back, then last week pushed out a new preview KB with what appears to be the same issue.
The same KB is also causing issues with some USB Audio 1.0 devices, so good riddance to it.
 
I meet the same yesterday, both arduino 2.0 and 1.8 can not work with loader,
then i removed KB5127936, KB5127694 - the windows patch,
it can fix the problem.
Removing these 2 (and postponing future updates) worked for me as well.
I couldn't actually remove the ones listed as causing the problem, presumably because of dependencies. But it now works.
I thought "move fast and break things" was a Zuckerberg slogan, not MS :)
 
Confirm that the issue is only with KB5127936. With the other (KB5127694 .NET Framework Security)
Arduino IDE 2.3.10 and Teensy Loader 1.62 work well.
By the way, I will install Linux in another partition... ;-)
Thanks again.
 
Same here. KB5127936 installed on 30/10/26 caused the issue on my system. Remove the update and the loader now works. IDE 2.3.10 and Loader 1.62 (tried 1.60, same issue also resolved removing KB update).
 
Just popping on to say I have the same issue, Windows 11. Latest.

Setting "teensy_post_compile.exe" to run as administrator in compatibility seemed to allow the connection after the recent windows update.

Ok scrap that, I must of got lucky as I can't get it to run again.

If teensy.exe is open, and I try to either telnet/putty into 127.0.0.1:3149 I do get a response "Teensy Loader 1.53" - So it does seem to be something with teensy_post_compile.exe no longer wanting to connect. Spamming the teensy_post_compile.exe command a few times did get me one connection, but didn't complete.


Code:
Opening Teensy Loader...
Sending command: comment: Teensyduino 1.59 - WINDOWS (teensy_post_compile)
Sending command: dir:C:\****
Sending command: file:***.hex
location = usb:0/140000/0/C
LoadLibrary cfgmgr32 ok
LoadLibrary ntdll ok
...
usb scan found 1 devices
Unable find Teensy Loader.  (r)  Is the Teensy Loader application running?
 
Last edited:
Back
Top