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

Thread: Custom Loader

  1. #1
    Junior Member
    Join Date
    Aug 2018
    Posts
    17

    Custom Loader

    Hello,

    I will have a custom teensy in my hardware; and I need a custom loader that I can let my customers use for future firmware updates. Can someone share any information on how to build a custom Teensy Loader? Or if there any source code out there that someone can share?

    I plan to have my own VID and PID in the Teensy; so maybe the Command Line loader won't work?

    Thanks a lot for the help!
    Last edited by mendez; 08-25-2018 at 05:34 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,467
    Quote Originally Posted by mendez View Post
    I plan to have my own VID and PID in the Teensy; so maybe the Command Line loader won't work?
    These numbers are editable in code. When compiled for Windows they're on line 478.

    https://github.com/PaulStoffregen/te...der_cli.c#L478


    Code:
    static HANDLE win32_teensy_handle = NULL;
    
    int teensy_open(void)
    {
        teensy_close();
        win32_teensy_handle = open_usb_device(0x16C0, 0x0478);
        if (win32_teensy_handle) return 1;
        return 0;
    }

    However, you can't edit the bootloader code in the MKL02 chip. So changing these numbers probably won't do you any good.

  3. #3
    Junior Member
    Join Date
    Aug 2018
    Posts
    17
    Hi

    Thank you for your reply. I planned to use a Teensy 3.6. So, if i want to make a board for my existing hardware, and i want the board to have my own company name when the board is plugged-in, I can not do that with teensy? My plan was to change the VID and PID so it looks professional for the product. The same way I did to the ATMega chips.

    Example: Can I buy from PJRC the MKL02 chip with my own VID and PID while keeping the bootloader?



    Thanks for your help
    Last edited by mendez; 08-25-2018 at 11:46 PM.

  4. #4
    Junior Member
    Join Date
    Aug 2018
    Posts
    17
    Quote Originally Posted by PaulStoffregen View Post
    However, you can't edit the bootloader code in the MKL02 chip. So changing these numbers probably won't do you any good.
    Hi Paul,

    I was able to change the VID and PID in the "usb_desc.h" file located in Teensy3 folder. I think that is all I need then?

    1. Change VID & PID in usb_desc.h
    2. Change VID & PID in teensy_loader (link you provided above)
    3. Develop and Sign my Driver INF
    4. Done? I should have a stand alone chip with my own serial VID & PID?

    Thanks a lot for your help and amazing board!

Posting Permissions

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