Open
Conversation
added 8 commits
February 15, 2015 23:08
…lues that contain the = character.
…ility with windows drive references containing colons.
…uding regex symbols. Swapped second regex match for SUBSTRING.
…s using LOADER option Added: print_teensy_modes(board_id) to list available modes Added: print_teensy_modes(board_id MODE mode_id) to list specific modes options Added: Detection of the Teensy SDK (loader specifically) on initialisation Added: Ability for Teensy mode options (speed, keys, usb) to be set in configuration, as comparable with Arduino IDE options for Teensy. Added: Support for missing build option flags (<board_id>.build.optionX) required for Teensy.
Added: Documentation to readme for teensy compatibility
|
What about this PR? would really like see it merged. |
Author
|
@filosganga iirc I ran into some problems with this and compiling out to Teensy 3. |
|
thanks |
Author
|
For what it's worth to anyone else who happens across this PR, I've abandoned trying to make this work in favor of using PlatformIO for the same cross-OS compiling. Will leave this PR open, but I now feel it's incomplete. I'll leave it up to the project maintainer to decide its fate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following on from issue #67, this PR adds support for Teensy boards and the Teensy SDK for arduino-cmake.
The crux of this PR is adding additional compile options and detecting/using teensy_loader_cli (halfkay) over avrdude for uploading.
Teensy-specific board modes that are available (usually
speed,usbandkeys) can be listed using the following command:print_teensy_modes(board_id)where board_id is the specific Teensy board identifier.The options available for each mode can be viewed using:
print_teensy_modes(board_id MODE mode_id)where mode_id is the mode (eg.speed) you want to view options for.Three specific options must be set for the Teensy board to compile correctly:
set(TEENSY_CPU_F_MODE 16)set(TEENSY_USB_MODE serial)set(TEENSY_KEYBOARD_MODE en-us)If the Teensy board is detected (usually specified in the Teensy boards.txt config via the
<board_id>.upload.protocolvalue ashalfkay), the teensy_loader_cli will be used. All other options (or null) default to avrdude, as before.Some additional support for teensy-specific build flags has been added, allowing
<board_id>.build.optionXdefinitions to be imported from the the boards.txt file as compile flags.Failing to define a F_CPU will now also raise a fatal error. This is a common hiccup when trying to set up arduino-cmake with a Teensy.
Requires (and integrates) PRs #141 and #140.
Please note I only have a Teensy, so I haven't been able to thoroughly test this against standard arduino boards.