-
Notifications
You must be signed in to change notification settings - Fork 223
Feature Request: Support for Other Boards #355
Comments
I would love to see Teensy supported. |
+1 for Teensy support, although this may be tricky as currently Teensyduino patches the underlying Arduino (IDE) jars. |
This extension is targeting official Arduino IDE compatible board support and it requires Arduino IDE support. So as long the board can be loaded into Arduino IDE via additional URL, we can support the board. Otherwise, it is not the scope of this extension. |
There is Arduino IDE board support for the Teensy boards that get installed with Teensyduino supplied by PJRC. You first install the Arduino IDE and then Teensyduino. It is located at /hardware/teensy and there is a board.txt and platform.txt file there plus the core and libraries. It is right alongside he Arduino equivalent. Except for the proprietary uploader and dedicated bootloader chip on the Teensy boards there is no difference to Arduino. One can create a new "board" in the teensy/board.txt file and use any other uploader (e.g. JTAG or SWD) assuming wires are added to the stock Teensy boards for SWD interface. Later version Teensy boards (e.g. 3.5 and 3.6) have pads for adding such wires The VS Code Arduino plugin should be able to support the Teensy boards which provide powerful Kinetis ARM processors. Would you please consider adding this to your great plug-in!? Thanks |
Both Teensy and LaunchPad, albeit complying with the Arduino specifications, require some modifications of the original Arduino IDE. For Teensy, Paul Stoffregen explains on this post the technical reasons for a separate IDE. On the case of Energia, this is also the case. However, a pull request addressing those issues (see Add build.project_path to global properties #119) is ready since February 2016, but Arduino hasn't answered yet —and two years after, will it consider it? Hence the clear opportunity for Visual Studio Code. |
@rei-vilo this request is very valuable, we will sync with team-mate for it. Thanks a lot. |
For Energia, all the source code is available at https://github.com/energia. |
This extension is Arduino only, so I’d not like to support them even there has some workarounds to let these boards playing with Arduino IDE. But we’re working on another extension, maybe that extension can support these boards. |
Arthur:
Thank you for your prompt answer.
Is there a repository for the other extension?
Best regards,
|
@ArthurMa1978 Adding Teensy support is super easy. I've got it working by appending the Can't this extension just be made aware of the teensy folder and pull files directly from there? |
EDIT: Of course I noticed your comment to copy the contents of Cores right after I posted. It seems like it's fine now, I've got to get it to find the OctoWS2811.h now. @JamesCoyle, I got the boards to be recognized by appending the contents of boards.txt but I'm curious how you went about copying the contents from platform.txt. For instance, I see that some settings like compiler.path will presumably overwrite the existing values, which I guess should be fine. I appended the contents to the bottom and am currently getting "fatal error: Arduino.h: No such file or directory" at compile time. I'm not sure if this is directly related, or if it's a result of my trying to port our existing code from an Arduino to the Teensy. |
Does upload works as expected? Teensy has specific upload and terminal procedures, hence the dedicated IDE Teensyduino. |
By providing documentation (especially on hard-coded elements) and guidance on how to adapt the VSCode Arduino extension to other Arduino-compliant platforms, VSCode could position itself as the next IDE of choice for fast prototyping. |
Hello, any updates on this? |
Just adding another +1 for teensy support. The latest mac update broke teensyduino for the Arduino IDE and I'm looking for an alternative. I use VS code for everything else, so having my teensy development wrapped up into the same environment would be incredible. |
Are you using PlatformIO which is an extension for VSCode? It has support for Teensy boards as well as custom boards with the Kinetis MCUs as in Teensy. PlatformIO has support for over 700 boards and has a full function debugger plus many other features. My post in this topic of Jan 29, 2018 was aimed at PlatformIO so I don't know why it ended up here. PlatformIO is the best thing to come to embedded development ever! Check it out... |
Yo @atestani I just found out about platformio (both in vscode and it's cli) and it's super awesome, thank you! |
There seem to be a solution https://github.com/luni64/VisualTeensy taken from this discussion https://forum.pjrc.com/threads/48878-How-to-add-Teensy-board-to-VS-Code-with-Arduino-plugin |
Alas, only for Windows. |
Although the Arduino IDE supports many boards thanks to the boards packages, some popular boards like Teensy / Teensyduino and Launchpad / Energia are not supported through the Boards Manager because of Arduino incompatibilities.
For example, Launchpad / Energia has committed a pull request, Add build.project_path to global properties #119, but ArduinoCC hasn't answered since February 2016.
The text was updated successfully, but these errors were encountered: