Skip to content

Teensy 3.6 - #402

Merged
focalintent merged 4 commits into
FastLED:masterfrom
kcouck:Teensy_3.6
Feb 17, 2017
Merged

focalintent merged 4 commits into
FastLED:masterfrom
kcouck:Teensy_3.6

Conversation

@kcouck

@kcouck kcouck commented Jan 15, 2017

Copy link
Copy Markdown
Contributor

Add support for ARM MK66FX1M0 processor in Teensy 3.6.
Probably works for MK64FX512 in Teensy 3.5 (same pin layout and SPI capabilities)

Only tested with WS2811 led strip (+ 16-way parallel)

@kcouck

kcouck commented Jan 20, 2017

Copy link
Copy Markdown
Contributor Author

The code was mostly copied from the k20.
The code for the k64 (Teensy 3.5) would almost be identical with the k66 code as well. I'd like to create some m4xxx files (like m0clockless) in the arm/common dir as well to group common code for the ARM Cortex-M4 line.
And maybe instead of creating 3 dirs (k20, k64, k66) for the remaining files, put the specific parts (mostly the pin mappings) into a "teensy" folder?

@focalintent

Copy link
Copy Markdown
Contributor

Thank you for this! I hope to spend some time merging this back in this weekend. I'll take care of figuring out what's common and splitting it all together. (I want to do a little bit more datasheet digging to see how close the k20, k64, and k66's are). I'm not sure yet on an m4 common - mostly because the exact registers used for clocking are different on some chipsets (the m0 common is possible because it's all hand cycle counted asm (with adjustments for m0+) so there's no io registers that'd be different between platforms)

@kcouck

kcouck commented Jan 20, 2017

Copy link
Copy Markdown
Contributor Author

Ok; I'll wait with that part then :)

I'll just try and check now if the 3rd byte of PORTB can be used as well for parallel processing :)

@kcouck

kcouck commented Jan 21, 2017 •

Copy link
Copy Markdown
Contributor Author

PORTB output added with some bit shifting to get the output byte into the third byte of the port.
Differentiation is needed between the MASK for the lanes (always on the first x bits of 'width'), and the MASK when actually pushing the data out.

I can't seem to get a decompile listing, but I hope that bitshift is getting optimized out incase we shift 0 bits (for PORT C and D) :)

@focalintent
focalintent merged commit 22c830b into FastLED:master Feb 17, 2017
@kcouck

kcouck commented Feb 17, 2017

Copy link
Copy Markdown
Contributor Author

Any idea on how you'd like to have T3.5 support added?

@adammhaile

Copy link
Copy Markdown

@kcouck You have instructions for using the Teensy 3.6? Used pins 11 and 13 which should be the main SPI, but no luck. Trying to figure out if I'm missing something.

@kcouck

kcouck commented Jun 29, 2017

Copy link
Copy Markdown
Contributor Author

Hello Adam, I haven't tested it with SPI (I only have WS2811's), but the code is almost identical to that for the Teensy 3.2, so I don't see any reason why it wouldn't work...

@adammhaile

adammhaile commented Jun 30, 2017 via email

Copy link
Copy Markdown

@kcouck
kcouck deleted the Teensy_3.6 branch February 11, 2023 00:18
zackees added a commit that referenced this pull request Jun 6, 2026
Picks up:

- **LPC8xx bare-metal target** (FastLED/fbuild#419) — the Stage 1
  deliverable from FastLED #2836 / #2845. Makes `fbuild build lpc845`
  and `fbuild build lpc804` actually work for the LPC port that this
  repo's `src/platforms/arm/lpc/` driver code targets.
- **ESP32-S2/S3 USB_VID/USB_PID redef warnings fixed** (#413) —
  drops the 149-156 build-warning noise the ESP-IDF Arduino BSP was
  emitting on every TinyUSB-enabled build.
- **build_info parent-dir creation for nested example envs**
  (#410) — fixes the case where `--examples Fx/FxNoisePalette`
  failed to write `build_info_<env>.json` because the env-name
  directory didn't exist.
- **Vendor-warning scopings** — renesas FSP `-Wno-error=`
  demotions now scoped to vendor C sources only (#412); nRF52
  `-Wno-array-bounds` scoped to Adafruit BSP only (#414). Both
  prevent FastLED-side warnings from being silenced.
- **CLI Windows stack reservation** — larger reserved stack
  (ce37f03) for sketches with deep template instantiations.
- **Test-fixture coverage** — SAMD (QT Py M0, Matrix Portal M4),
  STM32 (F0/L4 gap-tracking), ATmega tracker fixtures, CH559
  intel_mcs51 smoke fixture — together back the validate_boards
  reconciliation tracked at FastLED/fbuild#421/#422.
- **ESP32 daemon error surfacing + platform.json helper toolchains**
  (#402) — surfaces upstream daemon errors that previously got
  swallowed into a generic "build failed" exit.
- **zccache pin** — bumped to >=1.11.15 (#418); the recent zccache
  cache-key + reconfigure improvements that match this repo's
  meson-wrapper hashing protocol.

Verified locally — `uv run fbuild --version` reports `2.2.18`.

Refs FastLED/fbuild#419, FastLED #2845 (LPC roadmap meta, closed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants