defragster
Senior Member+
Using Frank_B's Compile.cmd with needed local system edits ON WINDOWS I got this working on my current sketch.
<edit> copied Compile.cmd to second sketch folder and from SublimeText3 it worked there as well, and it prompts on first use of Ctrl+B
Add this to SublimeText : C:\Users\yourNameHere\AppData\Roaming\Sublime Text 3\Packages\User\Teensy.sublime-build
{ I got this with answer found here : stackoverflow … how-to-compile-and-run-c-in-sublime-text-3 :: see '1. Create a new build system in Sublime: Tools > Build System > New Build System...'}
Using 'tools / build system / Teensy' then Ctrl+Shift+B allows selecting the desired compilation type: 1,2,3.
Once one is chosen hitting 'Ctrl+B' will rebuild with that option.
Edited areas for use of Compile.cmd are:
Edited below to get the TEMP files INTO the temp directory rather than at ROOT:
Also there was a forward slash here made to \:
<edit> copied Compile.cmd to second sketch folder and from SublimeText3 it worked there as well, and it prompts on first use of Ctrl+B
Add this to SublimeText : C:\Users\yourNameHere\AppData\Roaming\Sublime Text 3\Packages\User\Teensy.sublime-build
{ I got this with answer found here : stackoverflow … how-to-compile-and-run-c-in-sublime-text-3 :: see '1. Create a new build system in Sublime: Tools > Build System > New Build System...'}
Using 'tools / build system / Teensy' then Ctrl+Shift+B allows selecting the desired compilation type: 1,2,3.
Once one is chosen hitting 'Ctrl+B' will rebuild with that option.
Code:
{
"shell_cmd": ".\\Compile.cmd 1",
"variants":
[
{
"name": "Clean",
"shell_cmd": ".\\Compile.cmd 2",
},
{
"name": "Verify",
"shell_cmd": ".\\Compile.cmd 0",
}
]
}
Edited areas for use of Compile.cmd are:
Code:
rem Edit these paths:
set arduino=T:\arduino-1.8.8
set TyTools=T:\TyComm
set libs=T:\tCode\libraries
rem *******************************
rem Set Teensy-specific variables here:
rem
set model=teensy36
rem set model=teensy35
rem set model=teensy32
rem set model=teensyLC
rem set speed=180
rem set speed=240
set speed=256
rem set opt=o2std
rem set opt=o3lto
set opt=o3purelto
rem set usb=rawhid
set usb=serial
rem set usb=audio
rem set usb=serialmidiaudio
rem set keys=de-de
set keys=en-us
Edited below to get the TEMP files INTO the temp directory rather than at ROOT:
Code:
set temp1="%temp%\\arduino_build_%sketchname%"
set temp2="%temp%\\arduino_cache_%sketchname%"
Also there was a forward slash here made to \:
Code:
"%temp1%\%sketchname%.%model%.hex"
Last edited: