adafruit / tinyuf2

UF2 bootloader based on TinyUSB for embedded devices such as ESP32S2, STM32F4 and iMX RT10xx
MIT License
310 stars 170 forks source link

Teensy 4.0 and 4.1 support #291

Closed ccrome closed 1 year ago

ccrome commented 1 year ago

NOTE: I don't know the appropriate VID/PID -- It's currently using the 1060_evk settings and not the teensy settings. Not sure which to use

Checklist


Description of Change

This commit adds support for the Teensy 4.0 and 4.1 boards.

It modifies the ports/mimxrt10xx/tusb_config.h and boards.c so that either USB port 0 or usb port 1 can be used. This is useful for any IMXRT1062 based board. Though less useful for the teensy 4.0 because it doens't have that port pinned out.

The discussion of this PR is here: https://github.com/adafruit/tinyuf2/discussions/285

ccrome commented 1 year ago

I believe I addressed all the issues with 9db2504e0443c3b80858c4e6203ef4e05cc2f2de. I ran and verified that things still work on teensy 4.1 and 4.0, and that the PIDs are correct, and that the boot disks show up with the new names.