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

Thread: Teensy programs Teensy

  1. #1
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    533

    Teensy programs Teensy

    I just successfully programmed a T3.2 using the USB host from a T3.6. with a hex file loaded from the SD card.
    To do this I wrote the following two USB drivers (attached, but still quite sketchy! Maybe somebody has an answer to my question in this thread: https://forum.pjrc.com/threads/47550...l=1#post158821 )

    • The "TeensyRebootDriver" is used to start the bootloader without pressing the button. (This should work with any board compiled in USB_Serial mode or one in the various HID modes)
    • The TeensyHalfKayDriver connects to boards with an already running bootloader and is used to program the firmware.


    Here a picture of the "setup" and a screenshot of the debug output.

    Click image for larger version. 

Name:	cables.jpg 
Views:	68 
Size:	93.1 KB 
ID:	12027 Click image for larger version. 

Name:	output.PNG 
Views:	106 
Size:	40.0 KB 
ID:	12028


    I'm considering making a small programmer with integrated display and LiPo out of this. Such a thing might come in handy if you need to program a teensy mounted in in some difficult to reach place. It might also be useful in a production environment (no time consuming loading of the windows drivers ). And it gives me a reason to finally do something with this display lying around for some time now :-)

    Here a few sketches how such a thing could look like. 2.4" Nextion touch display, USB A connector for programming at the front and the T3.6 -USB micro for uploading hex files to the SD card and charging the 1300mAh LiPo.

    Click image for larger version. 

Name:	case.PNG 
Views:	56 
Size:	167.5 KB 
ID:	12029 Click image for larger version. 

Name:	setup.PNG 
Views:	56 
Size:	77.3 KB 
ID:	12030 Click image for larger version. 

Name:	dimensions.PNG 
Views:	57 
Size:	8.8 KB 
ID:	12032

    In case anybody is interested I can post the progress here.
    Attached Files Attached Files
    Last edited by luni; 12-14-2017 at 07:08 PM.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    533
    Hm, should have found that before I started programming, anyway was quite instructive... :-)

Posting Permissions

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