Forum Rule: Always post complete source code & details to reproduce any issue!
-

Originally Posted by
PaulStoffregen
Here's a possible fix. Please give this a try and let me know if it works on your Windows 10 system?
Extract this to Arduino's hardware/tools folder, replacing the existing teensy_post_compile.exe.
Windows 10 Home
Windows 10 Creators Update
Version 1703
OS Build 15063.296
Arduino 1.8.2
Teensyduino 1.36
Teensy 3.6
Works, thank you.
-

Originally Posted by
PaulStoffregen
Here's a possible fix. Please give this a try and let me know if it works on your Windows 10 system?
Hi Paul
I have not installed the latest Win10 Pro update and cannot get the loader to run without having to push the reset button. I have upgraded Teensyduino to the latest version (1.36) on Arduino 1.69. I have the problem with the new version of teensy_post_compile.exe you posted as well as teensy_loader.cli.exe (latest). If I push the button in either case it loads and reboots as it should.
It was working fine with VS2015/Visual Micro (i.e. no button push required) but I don't know if it is working now since my setup was trashed with the upgrades and I need to repair it before I can get back to where i was to test.
Hope a fix for this is forthcoming as i need to do "automated" programming in a production environment. Thanks
Al
-
I re-scanned toolchains, etc. and got my setup running again. I can now report that after a build, teensy.exe starts, programs, and reboots without a button push.
The teensy_post_compile.exe and teensy_loader.cli.exe methods work but require a button push.
-
Paul,
Seems to work OK. No need for "verbose" to be on any more.
Richard
-
Can confirm the new teensy_post_compile.exe has fixed the issue for me. Thanks.
-
I am trying to shell out from a C# application to program using either teensy-post_compile.exe or teensy_loader.cli.exe (both latest versions) and neither will work without a push of the button. I tried the same in a command window with the same results. I am running Win 10 Home and have all but the latest "Creator's Update" installed.
Do I need the Win 10 update to make it work or is something else wrong?
BTW, everything works fine when I compile and program from VS2015/Visual Micro.
-
Works fine with Windows 10 Pro, Arduino 1.8.2 and Teensyduino 1.36.
Thanx!
Peter
-
Senior Member
Thanks a lot Paul, I try it in a min.
Btw I just discovered that on Firefox 53.0.3 (32 bit) / Win10 cannot see any attachment in this thread, ouch. Had to use Microsoft Edge
Last edited by sumotoy; 06-03-2017 at 12:19 AM.
-
Senior Member
It works! Thanks!
There's another https://blogs.windows.com/windowsexp...avlXH4MKda4.97creator update under the corner (later this year), finger crossed!
-

Originally Posted by
atestani
I am trying to shell out from a C# application to program using either teensy-post_compile.exe or teensy_loader.cli.exe (both latest versions) and neither will work without a push of the button. I tried the same in a command window with the same results. I am running Win 10 Home and have all but the latest "Creator's Update" installed.
Do I need the Win 10 update to make it work or is something else wrong?
BTW, everything works fine when I compile and program from VS2015/Visual Micro.
Any ideas on how I can fix my problem?
-
Can not help you with shelling out the cli. but if your problem is to upload firmware to the teensy from within a c# program you can use that:
https://github.com/luni64/TeensySharp
-
Senior Member+

Originally Posted by
atestani
Any ideas on how I can fix my problem?
Does it work from a CMD shell on that Windows machine?
This Tool by Koromix : forum.pjrc.com ... Teensy-Qt
Has a command line interface that should work.
-

Originally Posted by
luni
This is great! Thanks for writing and sharing it. Much appreciated!
-

Originally Posted by
defragster
Does it work from a CMD shell on that Windows machine?
This Tool by Koromix :
forum.pjrc.com ... Teensy-Qt
Has a command line interface that should work.
No, it doesn't work in a CMD window. I can get in my C# program to run teensy-post_compile.exe or teensy_loader.cli.exe or do either in a CMD window and it runs fine but a button press is required.
-
Hi
looks like I have to deal with the problem described in post #1.
Windows 10 pro 64-bit
Teensy Loader 1.40 and Teensyduino probably 1.40 (where can I find version info ?)
TeensyLoader needs reset button. Serial via USB does not work. Tested with Blink with some serial.print's etc.No output on serial monitor.
I tested the same sketch on a Linux machine. Worked as expected.
I am at a loss and need help.
P.S. problem solved - https://forum.pjrc.com/threads/47503...l=1#post158582 helped
Last edited by hw999; 11-14-2017 at 09:31 PM.
-
When I run teensy_loader_cli.exe --mcumk20dx256 blink.ino.hex
I get:
Unable to open device
However, If I press the button, it finds the loader and programs.
How to get rid of the need to press button? I am using Windows 7 Professional and can program reliably with the GUI tool (without button press).
-
Senior Member+

Originally Posted by
bsrsharma
When I run teensy_loader_cli.exe --mcumk20dx256 blink.ino.hex
I get:
Unable to open device
...
I am using Windows 7 Professional and can program reliably with the GUI tool (without button press).
Is the prior sketch compiled with USB active? If not the loader exe can't get the Teensy into bootloader mode without the button.
-
Buttonless programming

Originally Posted by
defragster
Is the prior sketch compiled with USB active? If not the loader exe can't get the Teensy into bootloader mode without the button.
I compiled the code with Arduino 1.8.4 (Teensyduino 1.29) IDE. I do development with USB emulating COM4 for loading the code and UART access. I ran the CLI program in a console window without IDE (no difference with IDE open too) running.
Another observation: The Teensy Loader 1.39 that pops up automatically when I run Upload from IDE always has the Operation->Program and Reboot options grayed out. This is with the Auto (Automatic Mode) button On and Off. But I can always Upload code without pressing the white button on Teensy 3.2
The IDE is doing something right that the command line program is missing. I tried after rebooting my laptop to wipe away any accumulated sins too.
-
Senior Member+
Does this recent post help? Teensyduino-1-40-Released
-
I can report that tycmd.exe is working for me to do Buttonless programming. I downloaded tycmd.exe from https://github.com/Koromix/tytools/releases
I used TyTools-0.8.8-win64.msi
-
I tried the -s option; But I get:
Soft reboot is not implemented for Win32
Does that mean it works on Linux only?
-
Senior Member+

Originally Posted by
bsrsharma
That is the best answer. Glad to see you found it and that it worked for you. And it has more options as well for other multi Teensy situations. The GUI version is great for Serial debug and uploading as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules