Hm I think he labels the 1.54 beta x versions from just the current state of the Git repository of the core (GitHub - PaulStoffregen/cores: Teensy Core Libraries for Arduino) as it progresses. But let’s use the version you’ve linked instead.
Via platform_packages
you can arbitrarily chose the source of a package, such as the framework-arduinoteensy
package which contains the Arduino core.
(The name of the packages can be seen at the start of compilation output, e.g. normally
Processing teensy41 (platform: teensy; board: teensy41; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (4.12.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy 1.153.0 (1.53)
- toolchain-gccarmnoneeabi 1.50401.190816 (5.4.1)
)
So I can e.g. download the Teensy beta installer for windows, install it locally, add the needed package.json file to it, upload it somewhere and reference it.
So if I set up my platformio.ini
as e.g.
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
platform_packages =
framework-arduinoteensy@https://github.com/maxgerhardt/teensy-core-pio-package.git#1.54-beta7
(EDIT: the above git link has been altered to point at beta7. See post below for information on beta9 and branching structure.)
and compilation gives
PLATFORM: Teensy (4.12.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy 1.154.0-beta7+sha.ab262c6
- toolchain-gccarmnoneeabi 1.50401.190816 (5.4.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 96 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\teensy41\src\main.cpp.o
..
Building .pio\build\teensy41\firmware.hex
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 2.9% (used 15184 bytes from 524288 bytes)
Flash: [ ] 0.1% (used 7732 bytes from 8126464 bytes)
======================== [SUCCESS] Took 26.65 seconds ========================
If you need a newer Teensy uploader pacakges, the process is the same – the package is named tool-teensy
. Let me know if you need that too (and for which platform) and I can package it.