Arduino CLI And IDE now Released - Teensy Supported!

From reading this, it seems that teensy_ports may be the pluggable discovery tool for the original Arduino IDE 1.x/Teensyduino implementation, but not used by Arduino CLI and Arduino IDE 2.x

Yes, confirmed.

IDE 1.8.x uses teensy_ports and teensy_serialmon, which implement the legacy discovery JSON format (which was never really documented other than Java source code) and a non-standard pluggable monitor format (from long before Arduino published any pluggable monitor specs).

CLI & IDE 2 use teensy-discovery and teensy-monitor, which implement pluggable discovery spec and pluggable monitor spec.

Because the old formats were essentially undocumented and the new ones are official specs published by Arduino, I decided to implement the new way with a fresh start using different program names.
 
That is always welcome. Feedback from the Teensy community has been instrumental in improving quality and flexibility of Arduino CLI and Arduino IDE 2.x.

With the pluggable discovery tools like Arduino's serial-discovery and mdns-discovery and Paul Stoffregen's teensy-discovery, it is only a matter of "knows". These tools simply provide Arduino CLI with a list of ports.

The IDE knows and controls all the discovered ports. What it doesn't know is that your teensy protocol port and your serial protocol port are the same board and that the other must be closed in Serial Monitor during an upload.
...
So please keep an eye on it and let me know if you are able to find a way to reproduce it. I'll do the same.

... https://github.com/arduino/arduino-ide/issues/289



This is what I tried:
...
Do you get a different result if you perform the steps I provided above?

Following 1.58 uninstall, restart, and reinstall the T_4.1 was there plugged in all along - and it came up with Teensy_ports, so not reproducible as done. IIRC on the laptop where this was seen - Windows 10 noted it was 'installing driver' for device. It had used a T_4.1 before - but maybe not 'this one' and that may relate to a 'condition'. IIRC I saw it on this desktop as well - but that was going from RC3 to RC9.3 after removing the virtual RamDrive as TEMP ... when started as 'Admin' to work. My use of IDE 2 is intermittent and crossing big RC version jumps as I typically use the IDE 1.8.19 install and typically from CLI through batch file. So non typical usage pattern on this desktop, and usually jumping between sketches as Forum posts are addressed with some unique sample sketch. My SublimeText editor has ~56 files open - most are INO's - some Teensy source files I've visited over past weeks/months. And in doing that often more than one Teensy connected and using TyCommander for Serial monitor on one or more at a time. @koromix added a '-delegate' to TyCommander so a running batch file can disconnect USB_Serial and then defer to TeensyLoader - and that works perfectly ... visiting either IDE is when serial monitor 'port association' gets in the way.

Thanks for looking. These things may be intermittent - which is unfortunate, but better than commonly occurring, and perhaps just linked to the 'odd workflow' in use.

Yes indeed, #289 covers Sermon pop-out.

As far as port ID/contention hopefully that won't be an issue and can be minimized. One device, and one sketch, is no issue. The IDE 2 windows independence is nice, versus mult sketches on one IDE 1.x instance sharing settings - but when an open IDE 2 for some reason moved to alt _ports it gets in the way at times it seems.
 
Just tried to install
on Arduino 2.0 and came up with the error shown below
arduino 2.0 teensy install error.png

EDIT: PLEASE IGNORE I HAD DROPPED OFF THE "H" AT THE START OF HTTPS....Ooops
 
Updated to 2.0.0 release from rc9, and now I'm getting the error below which I did not have with rc9, and I can still build this project with IDE 1.8.19. Did I corrupt something?

Using board 'teensy35' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.57.0
Using core 'teensy3' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.57.0
Detecting libraries used...
/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK64FX512__ -DTEENSYDUINO=157 -DARDUINO=10607 -DARDUINO_TEENSY35 -DF_CPU=120000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.57.0\\cores\\teensy3" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino-sketch-BD35C5AD946AD24A4E87DDF9AD078DD4\\sketch\\FlasherX.ino.cpp" -o nul

exec: "/arm/bin/arm-none-eabi-g++": file does not exist

Compilation error: exec: "/arm/bin/arm-none-eabi-g++": file does not exist

EDIT: Installed TD 1.58b2, uninstalled, re-installed 1.57.0 and now it's okay. Can IDE 2.0.0 support multiple TD versions?
 
Last edited:
An ACTUAL error this time. Attempted to use Arduino 2.0 with the above .json and BitDefender threw the following hissy fit
arduino 2.0 teensy malware error.png
It stopped everything working, then re-booted and cleared things out in the process.
 
An ACTUAL error this time. Attempted to use Arduino 2.0 with the above .json and BitDefender threw the following hissy fit
View attachment 29366
It stopped everything working, then re-booted and cleared things out in the process.

Had similar issues with Norton but I put the directory on the exclude list. Maybe that will help.
 
Had similar issues with Norton but I put the directory on the exclude list. Maybe that will help.
Thanks I will give it a go next time, for the moment I have gone back to Arduino 1.18 / Visual Studio + Visual Micro.
 
Uninstalled prior RC's and removed older Unzip folders.

Downloaded the installer EXE and it completed fine and it found TD 1.58rc2 already there and worked.

AND it runs now not needing 'as Admin' with the issue of confused 'Temp' folder that was using the alternate path to Virtual_RamDrive now seeing the path to working SSD on C:

Still seeing intermittent TeensyPorts starting the SerMon connection reconnecting.
 
Just tried the new 2.0 IDE with my previous firmware and it seems to boot loop the Teensy now. Now firmware changes except for switching to the 2.0 IDE? (T4.1, 800mhz, fastest compilation)
 
Just tried the new 2.0 IDE with my previous firmware and it seems to boot loop the Teensy now. Now firmware changes except for switching to the 2.0 IDE? (T4.1, 800mhz, fastest compilation)

Is that IDE 2.0 with PJRC Teensy Board Mgr software: 1.57 or 1.58b2?

Is that versus the same code working with IDE 1.8.19 and what version of TeensyDuino?

Posting the Console verbose output might show some issue in the files used to build.
 
Is that IDE 2.0 with PJRC Teensy Board Mgr software: 1.57 or 1.58b2?

Is that versus the same code working with IDE 1.8.19 and what version of TeensyDuino?

Posting the Console verbose output might show some issue in the files used to build.

1.8.16 and 1.57 works fine, same code on 2.0 boot loops, verbose output below.

Code:
Using board 'teensy41' from platform in folder: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2
Using core 'teensy4' from platform in folder: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2
Detecting libraries used...
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\Wire" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\Wire" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\SPI" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o nul
Alternatives for TeensyID.h: [TeensyID@1.3.3]
ResolveLibrary(TeensyID.h)
  -> candidates: [TeensyID@1.3.3]
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\Wire" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\SPI" "-Ic:\\Users\\C\\Documents\\Arduino\\libraries\\TeensyID" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\sketch\file.cpp
Using cached library dependencies for file: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\Wire\Wire.cpp
Using cached library dependencies for file: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\Wire\WireIMXRT.cpp
Using cached library dependencies for file: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\Wire\WireKinetis.cpp
Using cached library dependencies for file: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\Wire\utility\twi.c
Using cached library dependencies for file: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\SPI\SPI.cpp
Using cached library dependencies for file: c:\Users\C\Documents\Arduino\libraries\TeensyID\TeensyID.cpp
WARNING: library TeensyID claims to run on Teensy architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
Generating function prototypes...
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\Wire" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\SPI" "-Ic:\\Users\\C\\Documents\\Arduino\\libraries\\TeensyID" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/precompile_helper" "C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2/cores/teensy4" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB" "C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -x c++-header -O3 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2/cores/teensy4" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/pch/Arduino.h" -o "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\pch\Arduino.h.gch
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -c -O3 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=816000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/pch" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\Wire" "-IC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\libraries\\SPI" "-Ic:\\Users\\C\\Documents\\Arduino\\libraries\\TeensyID" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp" -o "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp.o"
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\sketch\file.cpp.o
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\Wire\Wire.cpp.o
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\Wire\WireKinetis.cpp.o
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\Wire\WireIMXRT.cpp.o
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\Wire\utility\twi.c.o
Compiling library "SPI"
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\SPI\SPI.cpp.o
Compiling library "TeensyID"
Using previously compiled file: C:\Users\C\AppData\Local\Temp\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\libraries\TeensyID\TeensyID.cpp.o
Compiling core...
Using precompiled core: C:\Users\C\AppData\Local\Temp\arduino-core-cache\core_a5a0dc2587d02c81e68e494f8f4782d2.a
Linking everything together...
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-gcc" -O3 -Wl,--gc-sections,--relax "-TC:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta2\\cores\\teensy4/imxrt1062_t41.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\file.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\sketch\\main.ino.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\Wire\\WireIMXRT.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\Wire\\WireKinetis.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB\\libraries\\TeensyID\\TeensyID.cpp.o" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/..\\arduino-core-cache\\core_a5a0dc2587d02c81e68e494f8f4782d2.a" "-LC:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB" -larm_cortexM7lfsp_math -lm -lstdc++
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.eep"
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.hex"
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/teensy_secure" encrypthex TEENSY41 "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.hex"
No key .pem file found, skipping .ehex encryption
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/teensy_post_compile" -file=main.ino "-path=C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB" "-tools=C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/" -board=TEENSY41
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/stdout_redirect" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.sym" "C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-objdump" -t -C "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf"
Memory Usage on Teensy 4.1:
  FLASH: code:59312, data:10380, headers:9152   free for files:8047620
   RAM1: variables:12928, code:56152, padding:9384   free for local variables:445824
   RAM2: variables:12384  free for malloc/new:511904
 EXTRAM: variables:16000192
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/teensy_size" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf"
"C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta2/stdout_redirect" "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.lst" "C:\\Users\\C\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\\Users\\C\\AppData\\Local\\Temp\\arduino-sketch-130E66A079FB2AF3519474B1C5F532CB/main.ino.elf"

Using library Wire at version 1.0 in folder: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\Wire 
Using library SPI at version 1.0 in folder: C:\Users\C\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\SPI 
Using library TeensyID at version 1.3.3 in folder: C:\Users\C\Documents\Arduino\libraries\TeensyID
 
Not sure where reensid lib comes from but the version on GitHub says it’s for t3.x or LC. The first line says you are compiling for teensy 4.1. Maybe that has something to do with the boot loop.
 
"reensid" TeensyID? https://github.com/sstaub/TeensyID it is the same code I am compilling for both systems. Just checked at the versions of TeensyID are 1.3.3 on both IDE's.

Not sure why I didn't immediately try it but I rolled the teensy version back to the last non-beta in 2.0 and that programmed and worked correctly. So no issues with 2.0 just the latest Teensy beta. I would suggest that the 2.0 shouldn't default to betas and instead install the latest stable?
 
Last edited:
I have removed all the beta versions from the main package index:

https://www.pjrc.com/teensy/package_teensy_index.json

If you want to access beta versions, use the older URL with "td_156"

https://www.pjrc.com/teensy/td_156/package_teensy_index.json

The betas were causing trouble because of 2 separate issues:

#1: Boards Manager defaults to installing the latest version, even if it's a beta, even if the user is running a stable IDE version. Obviously we want people using stable IDE 2.0.0 to get stable Teensy 1.57.0.

#2: Boards Manager tries to install even if required tools are missing for the user's operating system. 1.58.0-beta1 and 1.58.0-beta2 were created only for Linux x86-64 and Windows, because we're testing a new toolchain. This caused MacOS users a lot of grief.

Maybe we ought to create issues on github, if these aren't already open issues?
 
#1: Boards Manager defaults to installing the latest version, even if it's a beta, even if the user is running a stable IDE version.

Hi PaulStoffregen. I made a relevant proposal here:

https://github.com/arduino/arduino-ide/issues/683

Do you think the proposed changes would be beneficial and sufficient?

Obviously we want people using stable IDE 2.0.0 to get stable Teensy 1.57.0.

I'm not convinced that the IDE behavior should make a correlate the versions of the two things. A beta tester of the Teensy platform won't necessarily be a beta tester of the IDE, and vice versa.
 
@PaullStoffregen @PerT - Actually to me both proposals/actions make sense.

@Paul - It is sort of a long the same line as using Sublime Text, there is the Released channel and the bleeding edge channel setups that you can choose from.
Although in this case, would suggest that maybe migrate from: https://www.pjrc.com/teensy/td_156/package_teensy_index.json
To something more like: https://www.pjrc.com/teensy/td_beta/package_teensy_index.json or https://www.pjrc.com/teensy_beta/package_teensy_index.json or ???

@PerT - I personally think your proposal from four years ago, would be a good start

And I partially agree that there may not be a complete correlation between using beta IDE and beta boards.

In the past with IDE1, I often keep/kept multiple installs one with the released stuff and one with the Work in progress. This is true for both Teensy and non-teensy.

For example, with Robotis OpenCM, I often had two or more installs of the boards.
I had their released version, that was installed using the board manager. I had their current source code version installed, under <sketchbook>/hardware/...
 
"reensid" TeensyID? https://github.com/sstaub/TeensyID it is the same code I am compilling for both systems. Just checked at the versions of TeensyID are 1.3.3 on both IDE's.

Not sure why I didn't immediately try it but I rolled the teensy version back to the last non-beta in 2.0 and that programmed and worked correctly. So no issues with 2.0 just the latest Teensy beta. I would suggest that the 2.0 shouldn't default to betas and instead install the latest stable?

Sorry was answering on my phone last night and wasn't by a PC to test.

I just downloaded TeesnyID and ran the T4_ReadAll sketch using IDE2 and 1.58beta2.

The sketch compiled without errors or a boot loop.
 
I downloaded 2.0 on an old notebook running MX linux and gave it a thorough tryout using 1.57. No issues with anything I tried. Surprisingly good performance considering that the machine is really obsolete.
 
On the Preferences dialog of IDE 1.8.19, there is a link to the Preferences.txt file. I edit that file to specify "build.path", the path for build output files, such as the hex file.

The Preferences dialog in IDE 2.0.0 does not contain the same link. Does anyone know where/how to specify/modify "build.path" for IDE 2.0.0?
 
Back
Top