• Pre-programmed Bootloader Chip for DIY Teensy LC and 3.2 Projects

By using this chip and a blank MKL26Z64VFT4 or MK20DX256VLH7, you can build your own Do-It-Yourself board that's compatible with Teensyduino and Teensy Loader. Either chip will work. The MKL02 or MKL04 will automatically detect which chip you've used and implement either Teensy LC or Teensy 3.2.

MKL02/MKL04 does not implement Teensy 3.0 or 3.1. MK20DX128 is not supported.

These chips can also be very useful for modest volume production of a fully custom product developed using Teensy LC or Teensy 3.2.

The MKL04 and MKL02 chips are functionally identical. The only difference is size. MKL02 is a tiny 3x3 mm QFN with 0.5 mm pitch pins, useful for designing the smallest possible board. MKL04 is a larger 7x7 mm TQFP part with 0.8 mm pitch pins, useful for prototyping with manual or hot plate soldering.

 

 

Required Connections:
--------------------

TQFP    QFN    Signal     Teensy 3.2              Teensy LC
----    ---    ------     -------------           ------------
 15      7      PTA7      MK20 Pin 25 (PTA3)      MKL26 Pin 20 (PTA3)
 16      8      PTB0      MK20 Pin 22 (PTA0)      MKL26 Pin 17 (PTA0)
 17      9      PTB1      MK20 Pin 24 (PTA2)      
 10      6      PTA6      MK20 Pin 23 (PTA1)      
  8      4      PTA4      MK20 Pin 34 (Reset)     MKL26 Pin 26 (Reset)
 25     13      PTB5      MK20 Pin 34 (Reset)     MKL26 Pin 26 (Reset)
 18     10      PTB2                 Program Pushbutton
  7      3      PTA3                 (unused, future debug enable, see below)
  3      1      VDD                  +3.3V
  4             AVDD                 +3.3V  (TQFP only)
  5             AVSS                 Ground (TQFP only)
  6      2      VSS                  Ground
        pad     VSS                  Ground (QFN only)

All other MKL02/MKL04 pins should be left unconnected

Examples

Reference Board using MKL04 chip.

Another Reference Board designed using Eagle CAD.

Crystal Guidelines

Teensy requires a 16 MHz crystal with a parallel load capacitance spec of 8 to 10 pF.

If an 18 pF rated crystal is used, two 20 pF capacitors should be added to the design.

The crystal should be located close to the MK20 chip. A ground plane should be placed underneath the crystal. If using a 2 layer PCB design, the ground plan for the crystal should NOT make any other connections to ground, other than the crystal case ground, capacitor grounds (if adding extra capacitance) and to the ground pin next to the crystal pins.

Never route any digital signal directly underneath the crystal (if disregarding the ground plane advice). PCB designs that violate these rules have experienced crashes or unreliable operation due to digital signals disrupting the crystal.

Avoid routing fast digital signals in parallel with either crystal trace. Normally this is a non-issue, because ground is on one side of the crystal pins and RESET is on the other side (RESET is safe, because it's held as a DC voltage while the chip runs). Fast digital signals can capacitively couple to either crystal signal, causing the oscillator stop or jitter, which can be particularly problematic if the internal phase-locked-loop is using the crystal as its timing reference.

Poor crystal layout has caused several custom PCB designs to fail. Be careful with the crystal layout!

Future Debug Enable

Future versions will support a debug request, using the PTA3 signal. When this signal is unconnected or HIGH, the chip will function normally. When PTA3 is pulled low, future versions will tri-state all signals connected to the MK20 chip, and will ignore the Program signal.

This future feature is intended to allow connecting a debug adaptor, where the cable would short PTA3 to ground. When the cable is plugged in, the MKL02/04 will effectively disconnect from all signals and allow the external debug cable full access.

Support for this debug request signal is planned for early 2016. If you design a PCB now with a debug connector, the PTA3 signal should be connected to a pin on the debug port which the debug cable shorts to ground.

Troubleshooting

Here are conversations from people who've used the MKL02/04 or MINI54 to build their own boards. Many bits of troubleshooting advise and details are available in these forum threads!

Diagnosing an unresponsive board. This discussion has details about how to check if the MK20 and MINI54 chips are alive. If you use a contract manufacturer, make sure they do not buy & use blank MINI54 chips!

 

Component details, particularly layout guidelines for the crystal.

VREGOUT on the MK20 must be connected, even if you are supply 3.3V without using the MK20's built in voltage regulator.

Good decoupling is needed on the 3.3V line. Two people confirmed their boards started working with more/better capacitors on the 3.3V power.

Pins shorted together obviously can cause trouble. If using a contract manufacturer to assemble prototypes, make more than one board. Two or more for each comparison can help reduce chances a random construction error ruins your otherwise perfect design.

Swapping the D+ and D- signals on the USB connector causes a board with a Program and Reset signal both responding to the pushbutton (a sure sign the Mini54 works) to never actually communicate with Teensy Loader.

VBAT must be connected, even if the RTC feature is never used. When VBAT lacks power, a board may be detected by Teensy Loader and appear to program correctly, but won't actually boot up and reappear as a serial device or whatever other type was selected in Tool > USB Type when compiling the code.

Missing power connections on a connector between a 2-board design can cause really confusing problems.

Please understand the crystal start oscillating under software control. The oscillator is NOT automatically enabled at power-up or reset. It is perfectly normal for the crystal to not oscillate while the MK20 is held in reset state or before software activates the oscillator. The MK20 always boots up to a mode where it runs from an internal RC oscillator.

Thoughts on the business sense of making your own PCB at different volumes and points within the product lifecycle, particularly before establishing any sales trend or market demand. This technically isn't an issue with the Mini54 chip, but it's perhaps the most common "problem" with custom boards. Making your own PCB for learning or fun is always a good idea. Doing it for commercial goals can be too, but isn't necessarily always a good path.

 

Write a review

Please login or register to review

Pre-programmed Bootloader Chip for DIY Teensy LC and 3.2 Projects

  • Brand: PJRC
  • Product Code:PJRC-3.2-Bootloader-Chip
  • Reward Points:10
  • Availability:In Stock
  • रo 929.00
  • रo 813.00

  • Price in reward points:968

  • 15 or more रo 925.00
  • 30 or more रo 921.00
  • 75 or more रo 917.00
  • 145 or more रo 914.00

Available Options


Related Products

Teensy LC - Development Board

Teensy LC - Development Board

Teensy-LC (Low Cost) is a powerful 32 bit microcontroller board, with a rich set of hardware periphe..

रo 1,229.00 रo 1,194.00

Teensy 3.2

Teensy 3.2

Teensy 3.2 features a 32 bit ARM processor. Teensy 3.2 is a direct, 100% compatible replacement ..

रo 1,730.00 रo 2,005.00

USBtinyISP - Arduino Bootloader Programmer

USBtinyISP - Arduino Bootloader Programmer

This is a USB AVR programmer supported by official Arduino IDE. Once the Arduino has lost its bootlo..

रo 1,076.00 रo 1,240.00

Tags: Teensy 3.2, bootloader, chip, DIY

The product is currently Out-of-Stock. Enter your email address below and we will notify you as soon as the product is available.

Name
Email
Phone
Comments