Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

New stino teensy support #365

Closed KurtE closed 7 years ago

KurtE commented 8 years ago

Fix some issues associated with using Stino to build for Teensy boards.

This includes adding params needed by the Teensy3 platform.txt: runtime.hardware.path extra.time.local

Also brought in the fix suggested in issue #330, which allowed the build to find libraries where the Teensyduino install put them:

\hardware\teensy\avr\libraries Also Added some support to make it work if you would integrate in to use TyQt to do the uploads. It defined a new recipe: recipe.objcopy.tyqt.pattern, which normal arduino builds picks up but Stino was not. So looked for it specifically and if found do it... The one change I still have to make to the platform.txt file is for the recipe.ar.pattern, where I change: recipe.ar.pattern="{compiler.path}{build.toolchain}{build.command.ar}" rcs "{build.path}/core/{archive_file}" "{object_file}" TO: archive_file_path={build.path}/{archive_file} recipe.ar.pattern="{compiler.path}{build.toolchain}{build.command.ar}" rcs "{archive_file_path}" "{object_file}" Which is more consistent with with the standard AVR platform.txt and works fine in Arduino build as well. Will see about getting this changed in hopefully the next Teensyduino install