Skip to content

Update Boards version number to a different version and then change back may not work. #2028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
KurtE opened this issue Apr 20, 2023 · 2 comments
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@KurtE
Copy link

KurtE commented Apr 20, 2023

Describe the problem

Suppose I have the Teensy board types installed, like 1.58.1, and I did a few builds, and then decide I wish to try something out on the current beta build 0.59.2. Run a test or two, then decide to update back to 1.58.1

And now the builds fail.

The problem is that the tool Teensy.exe was running when I installed or reinstalled the different versions.

To reproduce

Update from to 0.59.2 The output window shows:

Tool teensy:[email protected] already installed
Tool teensy:[email protected] already installed
Tool teensy:[email protected] already installed
Downloading packages
teensy:[email protected]
teensy:[email protected]
Installing teensy:[email protected]
Configuring tool.
teensy:[email protected] installed
Replacing platform teensy:[email protected] with teensy:[email protected]
Uninstalling teensy:[email protected]
Platform teensy:[email protected] uninstalled
Uninstalling teensy:[email protected], tool is no more required
Uninstalling teensy:[email protected], tool is no more required
Uninstalling teensy:[email protected], tool is no more required
Uninstalling teensy:[email protected], tool is no more required
Configuring platform.
Platform teensy:[email protected] installed

Now I convert back to 1.58.1

Tool teensy:[email protected] already installed
Tool teensy:[email protected] already installed
Tool teensy:[email protected] already installed
Tool teensy:[email protected] already installed
Downloading packages
teensy:[email protected]
Replacing platform teensy:[email protected] with teensy:[email protected]
Uninstalling teensy:[email protected]
Platform teensy:[email protected] uninstalled
Uninstalling teensy:[email protected], tool is no more required
Uninstalling teensy:[email protected], tool is no more required
Tool teensy:[email protected] uninstalled
Uninstalling teensy:[email protected], tool is no more required
Uninstalling teensy:[email protected], tool is no more required
Configuring platform.
Platform teensy:[email protected] installed

I then try building the same sketch over again and see:
image

FQBN: teensy:avr:teensyMM
Using board 'teensyMM' from platform in folder: C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1
Using core 'teensy4' from platform in folder: C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1

Detecting libraries used...
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\sketch\\borg_cube_ili9341_t3n.ino.cpp" -o nul
Alternatives for ILI9341_t3n.h: [[email protected]]
ResolveLibrary(ILI9341_t3n.h)
  -> candidates: [[email protected]]
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\sketch\\borg_cube_ili9341_t3n.ino.cpp" -o nul
Alternatives for SPI.h: [[email protected]]
ResolveLibrary(SPI.h)
  -> candidates: [[email protected]]
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\sketch\\borg_cube_ili9341_t3n.ino.cpp" -o nul
Alternatives for tgx.h: [[email protected]]
ResolveLibrary(tgx.h)
  -> candidates: [[email protected]]
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\sketch\\borg_cube_ili9341_t3n.ino.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\ILI9341_t3n.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\glcdfont.c" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\ili9341_t3n_font_Arial.c" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\ili9341_t3n_font_ArialBold.c" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\ili9341_t3n_font_ComicSansMS.c" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src\\ili9341_t3n_font_OpenSans.c" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI\\SPI.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\Color.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\Fonts.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\Renderer3D.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\font_tgx_Arial.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\font_tgx_Arial_Bold.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\font_tgx_OpenSans.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\font_tgx_OpenSans_Bold.cpp" -o nul
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src\\font_tgx_OpenSans_Italic.cpp" -o nul
Generating function prototypes...
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\cores\\teensy4" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\ILI9341_t3n\\src" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries\\SPI" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\tgx\\src" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\sketch\\borg_cube_ili9341_t3n.ino.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\kurte\\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\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/precompile_helper" "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1/cores/teensy4" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83" "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -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_TEENSY_MICROMOD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1/cores/teensy4" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83/pch/Arduino.h" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\D900ADA56C36DEBF2BF727755AF16A83/pch/Arduino.h.gch"
Using library ILI9341_t3n at version 1.1.0 in folder: D:\github\ili9341_t3n 
Using library SPI at version 1.0 in folder: C:\Users\kurte\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\SPI 
Using library TGX at version 1.0.0 in folder: D:\github\tgx 
exec: "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/precompile_helper": file does not exist

Compilation error: exec: "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/precompile_helper": file does not exist

So I looked in the tools directory and all that was init was:
image

My first thoughts were, that my Anti-virus decided to quarantine the new files for some reason. So it took several minutes for me to figure out how to see what was currently quarantined and the list was empty.

So I am now believe what happened is that when it installed the new version of tools, it tried to remove the other version, and failed to remove open executable. And then when I asked it to reinstall that version, it saw the directory existed and assumed everything was fine.

Expected behavior

One or both of:
a) when it tried to remove the previous version and failed, it should give me some type of warning and better yet let me know that the app Teensy is running, and give me a chance to do a retry.

b) When it detects that the tools directory existed, do a sanity check, like the package contained N object but the current one only has 1 in it...

Arduino IDE version

2.1.0

Operating system

Windows

Operating system version

11

Additional context

I did a quick search and did not find anything.

I resolved it this time, but closing the teesy.exe application, and change versions twice again and this time it removed the old version and the whole tools directory.

@PaulStoffregen - not sure anything we can do for this on the Teensy Side/

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@KurtE KurtE added the type: imperfection Perceived defect in any part of project label Apr 20, 2023
@PaulStoffregen
Copy link

PaulStoffregen commented Apr 22, 2023

Pretty sure the fundamental issue is Teensy tools continue running, but Arduino CLI & IDE have an implicit expectation that tools completely exit.

Later when you try to update or uninstall the Teensy tools, Arduino CLI (or IDE) isn't able to deal with the fact the a tool is still running in the background, which causes the operating system to disallow deleting its executable file.

I don't see any easy solution. Normal tools don't have any defined protocol like pluggable discovery and monitor do, to tell the tool running in the background to quit. But even without this, I would imagine the Arduino software could be much better about checking for errors while deleting files.

@Defragster
Copy link

Trying to repro observe this - with regard to Teensy_Ports and Serialmonitor active the version change similar to KurtE was noted when Teensy.exe was CLOSED. 1.58.1 was installed then updated to Beta 0.59.2. That folder created holding only Teensy.exe it seems. SO could not complete a build until the tools were copied from a IDE 1.8.19 folder.

Went back to 1.58.1 and the 0.59.2 folder was emptied but not removed. I cannot remove this directory manually either from file explorer of a cmdline PowerShell window as it is marked 'in use' - though EMPTY?

Trying again to upgrade from updated release 1.58.1 to beta 0.59.2 I got this:

Tool teensy:[email protected] already installed Tool teensy:[email protected] already installed Tool teensy:[email protected] already installed Downloading packages teensy:[email protected] teensy:[email protected] Installing teensy:[email protected] Failed to install platform: teensy:avr. Error: 13 INTERNAL: Cannot install tool teensy:[email protected]: moving extracted archive to destination dir: destination c:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\0.59.2 already exists
As noted it exists, though empty:
` Directory of C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools

[.] [..] [0.59.2] [1.58.0]
0 File(s) 0 bytes

Directory of C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\0.59.2

[.] [..]
0 File(s) 0 bytes

Directory of C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.58.0

[.] stdout_redirect.exe teensy_ports.exe teensy_secure.exe
[..] T4Security.jar teensy_post_compile.exe teensy_serialmon.exe
mktinyfat.exe teensy.exe teensy_reboot.exe teensy_size.exe
precompile_helper.exe teensy_gateway.exe teensy_restart.exe
13 File(s) 6,191,304 bytes`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants