boards: teensy4: Update board documentation
- insert various additional information content - use tabs to distinguish board versions - west flash is now usable for flashing - show steps for using USB-console - move images to img subfolder Signed-off-by: Bernhard Krämer <bdkrae@gmail.com>
This commit is contained in:
parent
c4d1c55319
commit
0e743abb1d
3 changed files with 163 additions and 67 deletions
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
@ -5,72 +5,100 @@ PJRC TEENSY 4
|
||||||
|
|
||||||
Overview
|
Overview
|
||||||
********
|
********
|
||||||
|
|
||||||
The Teensy is a complete USB-based microcontroller development system, in a
|
The Teensy is a complete USB-based microcontroller development system, in a
|
||||||
very small footprint, capable of implementing many types of projects. All
|
very small footprint, capable of implementing many types of projects. All
|
||||||
programming is done via the USB port.
|
programming is done via the USB port.
|
||||||
|
|
||||||
|
.. tabs::
|
||||||
|
|
||||||
.. figure:: teensy40.jpg
|
.. group-tab:: Teensy 4.0
|
||||||
|
|
||||||
|
.. figure:: img/teensy40.jpg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: TEENSY40
|
:alt: TEENSY40
|
||||||
|
|
||||||
TEENSY40 (Credit: https://www.pjrc.com)
|
(Credit: https://www.pjrc.com)
|
||||||
|
|
||||||
.. figure:: teensy41.jpg
|
.. group-tab:: Teensy 4.1
|
||||||
|
|
||||||
|
.. figure:: img/teensy41.jpg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: TEENSY41
|
:alt: TEENSY41
|
||||||
|
|
||||||
TEENSY41 (Credit: https://www.pjrc.com)
|
(Credit: https://www.pjrc.com)
|
||||||
|
|
||||||
Hardware
|
Hardware
|
||||||
********
|
********
|
||||||
|
|
||||||
Teensy 4.0:
|
.. tabs::
|
||||||
|
|
||||||
|
.. group-tab:: Teensy 4.0
|
||||||
|
|
||||||
- MIMXRT1062DVL6A MCU (600 MHz, 1024 KB on-chip memory)
|
- MIMXRT1062DVL6A MCU (600 MHz, 1024 KB on-chip memory)
|
||||||
- 16 Mbit QSPI Flash
|
- 16 Mbit QSPI Flash
|
||||||
- LED
|
- User LED
|
||||||
- USB 2.0 host connector
|
- USB 2.0 host connector
|
||||||
|
|
||||||
Teensy 4.1:
|
See the `Teensy 4.0 Website`_ for a complete hardware description.
|
||||||
|
|
||||||
|
.. group-tab:: Teensy 4.1
|
||||||
|
|
||||||
- MIMXRT1062DVJ6A MCU (600 MHz, 1024 KB on-chip memory)
|
- MIMXRT1062DVJ6A MCU (600 MHz, 1024 KB on-chip memory)
|
||||||
- 64 Mbit QSPI Flash
|
- 64 Mbit QSPI Flash
|
||||||
- LED
|
- User LED
|
||||||
- USB 2.0 host connector
|
- USB 2.0 host connector
|
||||||
- USB 2.0 OTG connector
|
- USB 2.0 OTG connector
|
||||||
- 10/100 Mbit/s Ethernet PHY
|
- 10/100 Mbit/s Ethernet transceiver
|
||||||
- TF socket for SD card
|
- TF socket for SD card
|
||||||
|
|
||||||
See the `Teensy 4.0 Website`_ for a complete hardware description.
|
To connect an Ethernet cable, additional `Teensy 4.1 Ethernet Kit`_ is required.
|
||||||
|
|
||||||
|
See the `Teensy 4.1 Website`_ for a complete hardware description.
|
||||||
|
|
||||||
|
For more information, check the `i.MX RT1060 Datasheet`_.
|
||||||
|
|
||||||
Supported Features
|
Supported Features
|
||||||
==================
|
==================
|
||||||
|
|
||||||
The teensy40 board configuration supports the following hardware
|
The Teensy 4.0 board configuration supports the following hardware
|
||||||
features:
|
features:
|
||||||
|
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+----------------------+
|
||||||
| Interface | Controller | Driver/Component |
|
| Interface | Controller | Driver/Component |
|
||||||
+===========+============+=====================================+
|
+===========+============+======================+
|
||||||
| NVIC | on-chip | nested vector interrupt controller |
|
| ADC | on-chip | adc |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+----------------------+
|
||||||
| SYSTICK | on-chip | systick |
|
| CLOCK | on-chip | clock_control |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+----------------------+
|
||||||
|
| FLASH | on-chip | flash |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
| GPIO | on-chip | gpio |
|
| GPIO | on-chip | gpio |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+----------------------+
|
||||||
| I2C | on-chip | i2c |
|
| I2C | on-chip | i2c |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+----------------------+
|
||||||
| UART | on-chip | serial port-polling; |
|
| I2S | on-chip | i2s |
|
||||||
| | | serial port-interrupt |
|
+-----------+------------+----------------------+
|
||||||
+-----------+------------+-------------------------------------+
|
| NVIC | on-chip | arch/arm |
|
||||||
| USB | on-chip | USB device |
|
+-----------+------------+----------------------+
|
||||||
+-----------+------------+-------------------------------------+
|
| PWM | on-chip | pwm |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| RTC | on-chip | system clock |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| SPI | on-chip | spi |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| CAN | on-chip | can |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| UART | on-chip | serial |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| USB | on-chip | usb |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| TRNG | on-chip | entropy |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
| WDT | on-chip | watchdog |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
|
||||||
The default configuration can be found in
|
The Teensy 4.1 board configuration supports additional hardware
|
||||||
:zephyr_file:`boards/pjrc/teensy4/teensy40_defconfig`
|
|
||||||
|
|
||||||
The teensy41 board configuration supports additional hardware
|
|
||||||
features:
|
features:
|
||||||
|
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
@ -81,10 +109,7 @@ features:
|
||||||
| ENET | on-chip | ethernet |
|
| ENET | on-chip | ethernet |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
The default configuration can be found in
|
Other hardware features have not been enabled yet for this board.
|
||||||
:zephyr_file:`boards/pjrc/teensy4/teensy41_defconfig`
|
|
||||||
|
|
||||||
Other hardware features are not currently supported by the port.
|
|
||||||
|
|
||||||
Connections and IOs
|
Connections and IOs
|
||||||
===================
|
===================
|
||||||
|
@ -204,16 +229,66 @@ Programming and Debugging
|
||||||
|
|
||||||
Flashing
|
Flashing
|
||||||
========
|
========
|
||||||
Build applications as usual (see :ref:`build_an_application` for more details).
|
|
||||||
|
|
||||||
Flash hex-file with the documented tools:
|
Both the Teensy 4.0 and Teensy 4.1 ship with a dedicated bootloader chip,
|
||||||
|
which supports flashing using USB. This allows easy flashing of new images,
|
||||||
|
but does not support debugging the device.
|
||||||
|
|
||||||
.. _Teensy flash tools:
|
#. Build the Zephyr kernel and the :zephyr:code-sample:`blinky` sample application.
|
||||||
https://www.pjrc.com/teensy/loader.html
|
|
||||||
|
|
||||||
Debugging
|
.. tabs::
|
||||||
=========
|
|
||||||
Console output is mapped to teensy pins 0 (RX1) and 1 (TX1). Connect a usb-to-serial adapter
|
.. group-tab:: Teensy 4.0
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/basic/blinky
|
||||||
|
:board: teensy40
|
||||||
|
:goals: build
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
.. group-tab:: Teensy 4.1
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/basic/blinky
|
||||||
|
:board: teensy41
|
||||||
|
:goals: build
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
#. Connect the board to your host computer using USB.
|
||||||
|
|
||||||
|
#. Tap the reset button to enter bootloader mode.
|
||||||
|
Red LED blinks.
|
||||||
|
|
||||||
|
#. Flash the image.
|
||||||
|
|
||||||
|
.. tabs::
|
||||||
|
|
||||||
|
.. group-tab:: Teensy 4.0
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/basic/blinky
|
||||||
|
:board: teensy40
|
||||||
|
:goals: flash
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
.. group-tab:: Teensy 4.1
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/basic/blinky
|
||||||
|
:board: teensy41
|
||||||
|
:goals: flash
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
#. You should see the orange LED blink.
|
||||||
|
|
||||||
|
Configuring a Console
|
||||||
|
=====================
|
||||||
|
|
||||||
|
.. tabs::
|
||||||
|
|
||||||
|
.. group-tab:: UART-Console
|
||||||
|
|
||||||
|
By default console output is mapped to teensy pins 0 (RX1) and 1 (TX1). Connect a usb-to-serial adapter
|
||||||
to use this serial console. Use the following settings with your serial terminal of choice (minicom, putty,
|
to use this serial console. Use the following settings with your serial terminal of choice (minicom, putty,
|
||||||
etc.):
|
etc.):
|
||||||
|
|
||||||
|
@ -222,6 +297,30 @@ etc.):
|
||||||
- Parity: None
|
- Parity: None
|
||||||
- Stop bits: 1
|
- Stop bits: 1
|
||||||
|
|
||||||
|
.. group-tab:: USB-Console
|
||||||
|
|
||||||
|
By mapping the console output to USB, a usb-to-serial adapter is no longer required.
|
||||||
|
Utilizing the :ref:`snippet-cdc-acm-console` and a config option will enable this feature.
|
||||||
|
|
||||||
|
#. If application code doesn´t enable USB device support, this must be done via Kconfig option.
|
||||||
|
|
||||||
|
.. code-block:: kconfig
|
||||||
|
|
||||||
|
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
|
||||||
|
|
||||||
|
#. Build application including the snippet.
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/basic/blinky
|
||||||
|
:snippets: cdc-acm-console
|
||||||
|
:board: teensy41
|
||||||
|
:goals: flash
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
#. After application startup a serial device named like
|
||||||
|
``tty.usbmodem14203`` should appear on your host computer.
|
||||||
|
You can use e.g. ``Serial Monitor`` plugin for VScode to monitor.
|
||||||
|
|
||||||
References
|
References
|
||||||
**********
|
**********
|
||||||
|
|
||||||
|
@ -230,14 +329,11 @@ References
|
||||||
.. _Teensy 4.0 Website:
|
.. _Teensy 4.0 Website:
|
||||||
https://www.pjrc.com/store/teensy40.html
|
https://www.pjrc.com/store/teensy40.html
|
||||||
|
|
||||||
.. _Teensy Schematics:
|
.. _Teensy 4.1 Website:
|
||||||
https://www.pjrc.com/teensy/schematic.html
|
https://www.pjrc.com/store/teensy41.html
|
||||||
|
|
||||||
.. _i.MX RT1060 Website:
|
.. _Teensy 4.1 Ethernet Kit:
|
||||||
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/i.mx-applications-processors/i.mx-rt-series/i.mx-rt1060-crossover-processor-with-arm-cortex-m7-core:i.MX-RT1060
|
https://www.pjrc.com/store/ethernet_kit.html
|
||||||
|
|
||||||
.. _i.MX RT1060 Datasheet:
|
.. _i.MX RT1060 Datasheet:
|
||||||
https://www.nxp.com/docs/en/nxp/data-sheets/IMXRT1060CEC.pdf
|
https://www.nxp.com/docs/en/nxp/data-sheets/IMXRT1060CEC.pdf
|
||||||
|
|
||||||
.. _i.MX RT1060 Reference Manual:
|
|
||||||
https://www.nxp.com/webapp/Download?colCode=IMXRT1060RM
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue