KurtE
Senior Member+
This message was updated from the old details about the first CLI Alpha release to more current versions of both the
CLI as well as the "RC candidates for the Arduino IDE2.
Most of this was taken from a few of Paul's posts.
Arduino IDE 2
You can download the: Future Version of the Arduino IDE from the Arduino Software Page
I started with the RC7 page. I personally will continue to monitor the Github IDE changes and will use daily builds again once there are additional changes.
Many of the earlier rough edges of the earlier builds have improved with RC7. Not saying it is perfect yet, but a lot better! I have started using it again to do some of the Arduino testing. Again this is the first build that supports SEREMU.
Paul has built a "Real" setup to plug into the Arduino Board Manager, currently it is based on TD 1.56
Once you have the IDE 2 up and running, you open open up the Preferences Page: On Windows File->Preferences
You will see a dialog that looks like:
As you can see in the Additional board manager URLS you enter:
Close the dialog.. I found I needed to exit the IDE and restart it and then you can now install the Teensy boards.
You Open the Boards Manager and Scroll down until you see the Teensy Install and click the Install button.
You then should have the Teensy boards installed. Note: this install stuff in a different location then the Teensyduino installs.
On my Windows machine it is stored at: C:\Users\kurte\AppData\Local\Arduino15\packages\teensy
And if you find any issues with the Arduino IDE, you might want to search the list of issues that have already been open.
You can find them up at: https://github.com/arduino/arduino-ide/issues
Some notes: on issues and things you might run into.
1) If you install the install IDE2 and the Teensy board. When you try to use Arduino builds like 1.8.19 and for example install TD 1.57B2, by default Arduino will see your install for teensy from the board manager (arduino15) and use it. Paul has posted a patch to the Arduino install for it to instead use the one installed within the Arduino install: more details and zip file up at: https://forum.pjrc.com/threads/5354...Teensy-Support?p=307482&viewfull=1#post307482
2) On the first install of the IDE2, installs a set of default libraries into your <Sketches folder>/libraries/ Including an SD library. With our current install this one will take priority over the one installed by Teensyduino. I have potential fix for this, mentioned in the post #202. And that is to update the library.properties file in TD version of
SD library to change the: architectures=*
to: architectures=avr,*
More information on Search order can be found at: https://arduino.github.io/arduino-cli/dev/sketch-build-process/#dependency-resolution
Edit: Arduino is now looking at adding another directory to store the Arduino level libraries, like it has been done in Arduino 1.x:
https://github.com/arduino/arduino-ide/issues/1055
3) When I installed RC7 (actually the nightly before it), when it ran on my main machine, it wiped out my list of installed boards. The board manager showed there were
no boards...
This is issue: https://github.com/arduino/arduino-ide/issues/1036
Had do do with with the install of certain releases of ESP8236. Also replicates if you type in a URL in the extras boards which does not exist.
There is a pending Pull Request to hopefully fix this. I resolved it by deleting (rename) my arduino15 directory and started from scratch.
4) If you edit boards.txt or local.boards.txt, the system may not see these changes. I ran into this, by copying over the 1.57B2 stuff, which had the new Serial + MTP
But also could reproduce, by editing boards.txt and say I want to enable faster speed on T3.2.
Issue: https://github.com/arduino/arduino-ide/issues/1030 also https://github.com/arduino/arduino-ide/issues/591
As per @per1234 (github) PerT? work around:
5) Suggestion by @PerT in post #204, that the Teensy Board URL at some point be a static URL that covers all of the releases of it and does not contain
the actual release number: That is instead of: https://www.pjrc.com/teensy/td_156/package_teensy_index.json
hopefully there will be something like: https://www.pjrc.com/teensy/package_teensy_index.json
6) Stability issues with Language Server. This is the code that when you hover over something, it will show you something like:
Makes me want to go in and edit some of our header files and add more details.
Issues include: https://github.com/arduino/arduino-ide/issues/1042
Edit (6/17): 7) There appears to be issue with at least the daily build, should check on RC7 as well. But Serial.available and the like does not appear to return data if Teeny port is selected, until something in your code does an output to Serial... i.e. Serial.print(...)
https://github.com/arduino/arduino-ide/issues/1072
Edit: (7/6): This appears to be a Windows only issue and the problem appears to be in teensy-monitor code as can replicate without any Arduino IDE/CLI code.
Edit 7/9 (more in https://forum.pjrc.com/threads/5354...Teensy-Support?p=309070&viewfull=1#post309070)
7) Teensy Examples - How to install them in IDE2
8) Teensy 4 Security
Probably others...
Arduino CLI
Updated this information and moved to post #3 below
CLI as well as the "RC candidates for the Arduino IDE2.
Most of this was taken from a few of Paul's posts.
Arduino IDE 2
You can download the: Future Version of the Arduino IDE from the Arduino Software Page
I started with the RC7 page. I personally will continue to monitor the Github IDE changes and will use daily builds again once there are additional changes.
Many of the earlier rough edges of the earlier builds have improved with RC7. Not saying it is perfect yet, but a lot better! I have started using it again to do some of the Arduino testing. Again this is the first build that supports SEREMU.
Paul has built a "Real" setup to plug into the Arduino Board Manager, currently it is based on TD 1.56
Once you have the IDE 2 up and running, you open open up the Preferences Page: On Windows File->Preferences
You will see a dialog that looks like:
As you can see in the Additional board manager URLS you enter:
Code:
https://www.pjrc.com/teensy/td_156/package_teensy_index.json
Close the dialog.. I found I needed to exit the IDE and restart it and then you can now install the Teensy boards.
You Open the Boards Manager and Scroll down until you see the Teensy Install and click the Install button.
You then should have the Teensy boards installed. Note: this install stuff in a different location then the Teensyduino installs.
On my Windows machine it is stored at: C:\Users\kurte\AppData\Local\Arduino15\packages\teensy
And if you find any issues with the Arduino IDE, you might want to search the list of issues that have already been open.
You can find them up at: https://github.com/arduino/arduino-ide/issues
Some notes: on issues and things you might run into.
1) If you install the install IDE2 and the Teensy board. When you try to use Arduino builds like 1.8.19 and for example install TD 1.57B2, by default Arduino will see your install for teensy from the board manager (arduino15) and use it. Paul has posted a patch to the Arduino install for it to instead use the one installed within the Arduino install: more details and zip file up at: https://forum.pjrc.com/threads/5354...Teensy-Support?p=307482&viewfull=1#post307482
2) On the first install of the IDE2, installs a set of default libraries into your <Sketches folder>/libraries/ Including an SD library. With our current install this one will take priority over the one installed by Teensyduino. I have potential fix for this, mentioned in the post #202. And that is to update the library.properties file in TD version of
SD library to change the: architectures=*
to: architectures=avr,*
More information on Search order can be found at: https://arduino.github.io/arduino-cli/dev/sketch-build-process/#dependency-resolution
Edit: Arduino is now looking at adding another directory to store the Arduino level libraries, like it has been done in Arduino 1.x:
https://github.com/arduino/arduino-ide/issues/1055
3) When I installed RC7 (actually the nightly before it), when it ran on my main machine, it wiped out my list of installed boards. The board manager showed there were
no boards...
This is issue: https://github.com/arduino/arduino-ide/issues/1036
Had do do with with the install of certain releases of ESP8236. Also replicates if you type in a URL in the extras boards which does not exist.
There is a pending Pull Request to hopefully fix this. I resolved it by deleting (rename) my arduino15 directory and started from scratch.
4) If you edit boards.txt or local.boards.txt, the system may not see these changes. I ran into this, by copying over the 1.57B2 stuff, which had the new Serial + MTP
But also could reproduce, by editing boards.txt and say I want to enable faster speed on T3.2.
Issue: https://github.com/arduino/arduino-ide/issues/1030 also https://github.com/arduino/arduino-ide/issues/591
As per @per1234 (github) PerT? work around:
Code:
Select File > Quit from the Arduino IDE menus if it is running.
Delete the "User data" folder:
Windows: C:\Users\<user name>\AppData\Roaming\arduino-ide\
Linux: ~/.config/arduino-ide/
macOS: ~/Library/Application Support/arduino-ide/
Start the Arduino IDE.
5) Suggestion by @PerT in post #204, that the Teensy Board URL at some point be a static URL that covers all of the releases of it and does not contain
the actual release number: That is instead of: https://www.pjrc.com/teensy/td_156/package_teensy_index.json
hopefully there will be something like: https://www.pjrc.com/teensy/package_teensy_index.json
6) Stability issues with Language Server. This is the code that when you hover over something, it will show you something like:
Makes me want to go in and edit some of our header files and add more details.
Issues include: https://github.com/arduino/arduino-ide/issues/1042
Edit (6/17): 7) There appears to be issue with at least the daily build, should check on RC7 as well. But Serial.available and the like does not appear to return data if Teeny port is selected, until something in your code does an output to Serial... i.e. Serial.print(...)
https://github.com/arduino/arduino-ide/issues/1072
Edit: (7/6): This appears to be a Windows only issue and the problem appears to be in teensy-monitor code as can replicate without any Arduino IDE/CLI code.
Edit 7/9 (more in https://forum.pjrc.com/threads/5354...Teensy-Support?p=309070&viewfull=1#post309070)
7) Teensy Examples - How to install them in IDE2
8) Teensy 4 Security
Probably others...
Arduino CLI
Updated this information and moved to post #3 below
Attachments
Last edited: