ILI9341 graphicstest compiles but removes serial com port from Windows 10

Status
Not open for further replies.

RichardFerraro

Well-known member
This is perplexing. I am having new trouble with ILI9341.

When I compile/upload graphicstest.ino (with while (!Serial) commented out) I lose the Com Port.
It compiles fine and TeensyDuino does not report any errors.
Running a Hello World program afterwards (after pushing the program button) executes and brings back the Com Port.
This is recent as my uploading to my hardware used to work just fine.
I have tried two different systems. This one uses PJRC's interface board.

I upgraded to Arduino 1.69 and TeensyDuino 1.29 to no avail.

I started having intermittent problems. I actually got it to function for a while.
This morning it was working and I inserted a while(!Serial). Immediately, it lost the com port.
I removed while(!Serial), powered down, rebooted, even reloaded new Arduino/Teensyduino.
To no avail.

Any suggestions:

C:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Arduino\hardware" -tools "C:\Arduino\tools-builder" -tools "C:\Arduino\hardware\tools\avr" -built-in-libraries "C:\Arduino\libraries" -libraries "C:\Sketch\libraries" -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10609 -build-path "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp" -warnings=none -verbose "C:\Devel\Ili9341_t3\ILI9341_t3-master\examples\graphicstest\graphicstest.ino"
C:\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Arduino\hardware" -tools "C:\Arduino\tools-builder" -tools "C:\Arduino\hardware\tools\avr" -built-in-libraries "C:\Arduino\libraries" -libraries "C:\Sketch\libraries" -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10609 -build-path "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp" -warnings=none -verbose "C:\Devel\Ili9341_t3\ILI9341_t3-master\examples\graphicstest\graphicstest.ino"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Arduino\hardware\teensy\avr\libraries\SPI\SPI.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3\ILI9341_t3.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "C:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3\font_Arial.c" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3\font_ArialBold.c" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3\glcdfont.c" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=129 -DARDUINO=10609 -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Arduino\hardware\teensy\avr\libraries\SPI" "-IC:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp" -o "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp.o"
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\SPI\SPI.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\font_Arial.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\font_ArialBold.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\glcdfont.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\ILI9341_t3.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\memcpy-armv7m.S.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\memset.S.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\analog.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\eeprom.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\keylayouts.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\math_helper.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\mk20dx128.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\nonstd.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\pins_teensy.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\ser_print.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial1.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial2.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial3.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial4.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial5.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\touch.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_desc.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_dev.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_joystick.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_keyboard.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mem.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_midi.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mouse.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mtp.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_rawhid.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_seremu.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_serial.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_touch.c.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\AudioStream.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\DMAChannel.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial4.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial5.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\IntervalTimer.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Print.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Stream.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Tone.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\WMath.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\WString.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\avr_emulation.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\main.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\new.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_audio.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_flightsim.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_inst.cpp.o
Using previously compiled file: C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\yield.cpp.o
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\memcpy-armv7m.S.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\memset.S.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\analog.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\eeprom.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\keylayouts.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\math_helper.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\mk20dx128.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\nonstd.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\pins_teensy.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\ser_print.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial1.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial2.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial3.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial4.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\serial5.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\touch.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_desc.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_dev.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_joystick.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_keyboard.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mem.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_midi.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mouse.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_mtp.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_rawhid.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_seremu.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_serial.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_touch.c.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\AudioStream.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\DMAChannel.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial1.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial2.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial3.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial4.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\HardwareSerial5.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\IPAddress.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\IntervalTimer.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Print.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Stream.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\Tone.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\WMath.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\WString.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\avr_emulation.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\main.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\new.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_audio.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_flightsim.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\usb_inst.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar" rcs "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core/core.a" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\core\yield.cpp.o"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1469622221 "-TC:\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx256.ld" -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/graphicstest.ino.elf" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\sketch\graphicstest.ino.cpp.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\SPI\SPI.cpp.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\font_Arial.c.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\font_ArialBold.c.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\glcdfont.c.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp\libraries\ILI9341_t3\ILI9341_t3.cpp.o" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/core\core.a" "-LC:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp" -larm_cortexM4l_math -lm
"C:\Arduino\hardware\teensy/../tools/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\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/graphicstest.ino.elf" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/graphicstest.ino.eep"
"C:\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/graphicstest.ino.elf" "C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp/graphicstest.ino.hex"
"C:\Arduino\hardware\teensy/../tools//teensy_post_compile" "-file=graphicstest.ino" "-path=C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp" "-tools=C:\Arduino\hardware\teensy/../tools/" "-board=TEENSY31"
Using library SPI at version 1.0 in folder: C:\Arduino\hardware\teensy\avr\libraries\SPI
Using library ILI9341_t3 at version 1.0 in folder: C:\Arduino\hardware\teensy\avr\libraries\ILI9341_t3

Sketch uses 40,684 bytes (15%) of program storage space. Maximum is 262,144 bytes.
Global variables use 4,712 bytes (7%) of dynamic memory, leaving 60,824 bytes for local variables. Maximum is 65,536 bytes.
C:\Arduino\hardware\teensy/../tools/teensy_post_compile -test -file=graphicstest.ino -path=C:\Users\Richard\AppData\Local\Temp\buildd397b375daf4df7264cc94a9c64740df.tmp -tools=C:\Arduino\hardware\teensy/../tools -board=TEENSY31 -reboot
 
You might try a simple timeout with !serial.

Something like:
Code:
    while (!serial && (millis() < 2000)) ;
It will wait up to 2 seconds for the Serial port to come available, before continuing.

I sometimes find if it is doing Serial.print() to quickly at startup it can become unhappy...
 
Thanks, but that is not my issue.
I loose the Serial port WITHOUT any waiting for serial in my code (when I am compiling with ILI9341)
 
Sorry, what I was trying to say is I have had better luck if I either wait for the Serial object to be ready and/or add a delay. Sometimes I add a couple of delays. like:
Code:
delay(250);
Serial.begin(38400);
delay(250);
Serial.print(...
 
The " while (!serial && (millis() < 2000)) ; " is what I always use - and have done a lot with ILI9341 - Win_7 and now Win_10. I usually find the problem to be IDE SerMon to be the intermittent problem when combined with waiting for Windows to present the port. If you don't wait like this - it is pretty much guaranteed to start without initial messages being visible.

Try TYQT - it tends to be more responsive and good for me. Even better with Tools/ 'Integrate to Arduino' as it then uses the same program for serial monitor and code uploading to know when to release and recover the USB port.

Having the K66 hardware TYQT is waiting to upgrade to support it - so I have to use the SerMon more, recently I find I have to close the SerMon window and re-open it - or just click the SerMon icon on an IDE window to tell it to restart as it loses contact and leaves it blank without auto reconnecting.
 
On my MacBook, I've been using a terminal window and minicom (installed via Homebrew: `brew install minicom`).

Code:
minicom -D /dev/cu.usbmodem1245101 -b 19200 -8 -c on -a on

It re-connects promptly after Teensy boots from being programmed.

I've also started using escape sequences to clear the screen. It doesn't clear the scroll back buffer above the currently visible lines, but it's nice to see the serial output start at the top of the terminal window after each programming/reboot cycle.

Code:
#define PRINT true

#define ANSI_ESCAPE 0x1B
#define ANSI_LEFT_BRACKET 0x5B
const uint8_t ERASE_DISPLAY[] = {ANSI_ESCAPE, ANSI_LEFT_BRACKET, '2', 'J'};

// And then use this within setup()

    Serial.begin(19200);  // USB, communication to PC or Mac
#if PRINT
    while(!Serial) {
        delay(20);
    }
    Serial.write(ERASE_DISPLAY, 4);

    Serial.println("Connected USB.");
#endif // PRINT
 
Thanks. I have not had this problem before.

I removed the original include of SPI.
//#include "SPI.h"
#include "ILI9341_t3.h"

and the graphicstest code uploaded Arduino or Qt and functions.

I need SPI for a microSD and can do this:

#include "ILI9341_t3.h"
#include "SPI.h"

Why am I different from everybody else?

thanks for the suggestions.
 
The problem came back - lose of serial port and unsuccessful upload. Uploading Hello World with program button push brings it back.
I don't have this problem with other sketches that don't use ILI9341/SPI.
I was able to successfully upload my ILI9341/SPI sketches using a different computer.

Any suggestions as to how I might fix it?
 
Per forum rule at the page top - you should post a short example that shows the behavior you are seeing. Perhaps update to TeensyDuino 1.30b1 to see if it repros there.
 
First of all, you should understand Teensy uses HID protocol during uploading, not serial. So it's 100% normal for the COM port to disappear while the upload is in progress.

Of course, when Teensy runs your program again, assuming you had Tools > USB Type set to Serial (the default), Teensy is supposed to reappear to your PC as a serial device. To your PC, it's as if you had unplugged the cable, then plugged in a HID device, then quickly unplugged after the upload, and then the cable is plugged back in and Teensy is again a USB serial device.

Why that process isn't work for you, with your PC and your hardware is a good question. There nowhere near enough info here for anything more than blind guessing. But maybe this explanation of how the process is supposed to work will at least help you?
 
I wanted to make sure, and I am happy to say, it has been completely stable with the install of 1.6.10 and 1.30 beta. (although updating to 1.6.9 did not fix the problem).
My port was staying off and the program wouldn't load (only when spi/ ili9341 was included but not otherwise).
A second computer did not exhibit this behavior.

It works now so all's well.
thanks,
Richard
 
Status
Not open for further replies.
Back
Top