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

Thread: Teensy Loader Win10 binary and VS2019 Project

  1. #1
    Junior Member dbuergin's Avatar
    Join Date
    Dec 2020
    Location
    Switzerland
    Posts
    8

    Teensy Loader Win10 binary and VS2019 Project

    Hi guys,

    Since i was too stupid to find an actual binary of teensy_loader_cli.exe for Win10, i've compiled my own one.

    Attached is my Visual Studio 2019 project with the binary in .\x64\release dir.

    To use that project, you have to (https://docs.microsoft.com/en-us/win...wnload-the-wdk)
    - Install Visual Studio Code 2019 (obviously...)
    - Outside VS2019 install SDK and WDK as new as possible
    - Open VS2019 with the solution attached
    - Check that you have "Release" in the build settings on top and "x64" and click "Build"
    - You should have teensy_loader_cli.exe in the .\x64\Release dir

    Changes in the source of teensy_loader_cli.c:

    Code:
    // #include <unistd.h>
    #include <process.h>
    
    #pragma comment( lib,"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.19041.0\\um\\x64\\hid.lib")
    #pragma comment( lib,"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.19041.0\\um\\x64\\setupapi.lib")
    #pragma comment( lib,"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.19041.0\\um\\x64\\winmm.lib")
    The #pragmas are because it didn't work for me to add the libs to the project settings. So you will have either to solve the issue with adding the additional libs to the project settings or change the path in the pragmas to your lib location.

    Daniel
    Attached Files Attached Files
    Last edited by dbuergin; 12-30-2020 at 01:09 PM.

  2. #2
    Junior Member
    Join Date
    May 2021
    Posts
    1
    Thanks a lot - it was very helpful!
    however , I am trying to also upload without pressing the program button , is it possible?

  3. #3
    Junior Member
    Join Date
    May 2021
    Posts
    3
    Quote Originally Posted by MikMik View Post
    Thanks a lot - it was very helpful!
    however , I am trying to also upload without pressing the program button , is it possible?
    I got my Teensy today, and after the first verification I just press upload and it loads automatically, even if the image says "Press Button on Teensy..."

    @dbuergin thank you

  4. #4
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,475
    Quote Originally Posted by MikMik View Post
    Thanks a lot - it was very helpful!
    however , I am trying to also upload without pressing the program button , is it possible?
    You might also give the tyTools a try https://github.com/Koromix/tytools. It comes with a nice GUI + SerMon, provides a command line tool and can handle multiple Teensies.

Posting Permissions

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