Supports:
- CMSIS-DAP
- Multiple serial terminals
- GPIO read/write/port register control.
Right now the backend uses raw hid reports for debug communication, terminal.py will open an interactive terminal to the device.
Pre-requisites:
Build all of the platforms you need. It will fetch source and dependencies but will fail! After this first attempt at building, the patches listed below need to be applied.
pio run -e teensy41
pio run -e teensy31
pio run -e teensy36Required for all teensy versions.
patch -d ~/.platformio/ -p0 < diff/arduino.py.diffpatch -d ~/.platformio/ -p0 < diff/teensy3/usb_desc.c.diff
patch -d ~/.platformio/ -p0 < diff/teensy3/usb_desc.h.diff
patch -d ~/.platformio/ -p0 < diff/teensy3/usb_inst.cpp.diff
patch -d ~/.platformio/ -p0 < diff/teensy3/yield.cpp.diffpatch -d ~/.platformio/ -p0 < diff/arduino.py.diff
patch -d ~/.platformio/ -p0 < diff/teensy4/usb_desc.c.diff
patch -d ~/.platformio/ -p0 < diff/teensy4/usb_desc.h.diff
patch -d ~/.platformio/ -p0 < diff/teensy4/usb_inst.cpp.diff
patch -d ~/.platformio/ -p0 < diff/teensy4/yield.cpp.diffNow all the builds should succeed.
pio run -e teensy41
pio run -e teensy31
pio run -e teensy36Flash to whatever teensy hardware you have attached.
pio run -e teensy41 --target upload
pio run -e teensy31 --target upload
pio run -e teensy36 --target upload# For example with tio
tio /dev/serial/by-id/usb-Framework_CMSIS-DAP_13993040-if04
# Or picocom/minicom/screen
picocom /dev/ttyACM2 -b 115200Run the script for your target platform
./scripts/flash_tgl_ec.sh
./scripts/flash_adl_ec.shOnly for advanced usage, you can probably ignore this.
# For example with tio
tio /dev/serial/by-id/usb-Framework_CMSIS-DAP_13993040-if00
# Or picocom/minicom/screen
picocom /dev/ttyACM0 -b 115200