After a lot of head-scratching and puzzling over the Arduino GCC configuration, I have finally got a nice template project working in Segger's Embedded Studio along with the J-Link USB hardware debug probe on the Teensy 3.6.
You will need to modify the Teensy to add SWD (see this thread and my guide and notes here).
You must install Arduino 1.8.4, Teensyduino 1.39 and create a symbolic link in Windows (I did this for the sake of makefile, but the project could probably be reconfigured to point to the horrible path that Arduino is installed in).
Full notes are in the _README_FIRST_.txt file in the zip.
This is very much a work-in-progress and YMMV. If you find issues, please let me know. However, please don't assume a quick answer - I am incredibly busy with several serious projects not involving Teensy. But I'll do my best to help out
View attachment TeensyDuinoTemplate.2017-11-01.zip
Matt
You will need to modify the Teensy to add SWD (see this thread and my guide and notes here).
You must install Arduino 1.8.4, Teensyduino 1.39 and create a symbolic link in Windows (I did this for the sake of makefile, but the project could probably be reconfigured to point to the horrible path that Arduino is installed in).
Full notes are in the _README_FIRST_.txt file in the zip.
This is very much a work-in-progress and YMMV. If you find issues, please let me know. However, please don't assume a quick answer - I am incredibly busy with several serious projects not involving Teensy. But I'll do my best to help out
View attachment TeensyDuinoTemplate.2017-11-01.zip
Matt