I'm having issues compiling the default Blink sketch for my Teensy 3.5 using the Arduino IDE on Windows 10. After sifting through https://forum.pjrc.com/threads/40417...ram-Teensy-3-5 and uninstalling and reinstalling the latest version of the IDE (1.8.9) and Teensyduino (1.46), I found the hex file in...
Code:
C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378"
after looking through the IDE verbose output...
Code:
Linking everything together...
"D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1565615245 "-TD:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/mk64fx512.ld" -lstdc++ -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -o "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.elf" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378\\sketch\\Blink.ino.cpp.o" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/core\\core.a" "-LC:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378" -larm_cortexM4lf_math -lm
"D:\\myName\\Documents\\Projects\\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\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.elf" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.eep"
"D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.elf" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.hex"
"D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/stdout_redirect" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.lst" "D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.elf"
"D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/stdout_redirect" "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.sym" "D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objdump" -t -C "C:\\Users\\myName~1\\AppData\\Local\\Temp\\arduino_build_515378/Blink.ino.elf"
"D:\\myName\\Documents\\Projects\\Arduino\\hardware\\teensy/../tools/teensy_post_compile" -file=Blink.ino "-path=
The verbose info from Teensy is ...
Code:
13:34:41.151 (loader): Teensy Loader 1.46, begin program
13:34:41.212 (loader): Listening for remote control on port 3149
13:34:41.213 (loader): initialized, showing main window
13:34:47.684 (loader): Verbose Info event
13:51:15.090 (loader): Open File event
13:51:17.656 (loader): File "Blink.ino.hex". 10520 bytes, 2% used
13:51:21.146 (loader): Auto Button event
13:51:21.147 (loader): Auto mode: enabled
13:51:25.212 (loader): Device came online, code_size = 524288
13:51:25.219 (loader): Board is: Teensy 3.5 (MK64FX512), version 1.03
13:51:25.237 (loader): File "Blink.ino.hex". 10520 bytes, 2% used
13:51:25.248 (loader): set background IMG_ONLINE
13:51:25.260 (loader): File "Blink.ino.hex". 10520 bytes, 2% used
13:51:25.264 (loader): elf appears to be for Teensy 3.5 (MK64FX512) (524288 bytes)
13:51:25.267 (loader): elf binary data matches hex file
13:51:25.270 (loader): elf file is for Teensy 3.5 (MK64FX512)
13:51:25.273 (loader): begin operation
13:51:25.291 (loader): flash, block=0, bs=1024, auto=1
13:51:25.295 (loader):  gauge old value = 0
13:51:25.298 (loader): flash, block=1, bs=1024, auto=1
13:51:25.302 (loader):  gauge old value = 1
13:51:25.304 (loader): flash, block=2, bs=1024, auto=1
13:51:25.306 (loader):  gauge old value = 2
13:51:25.307 (loader): flash, block=3, bs=1024, auto=1
13:51:25.436 (loader):  gauge old value = 3
13:51:25.442 (loader): flash, block=4, bs=1024, auto=1
13:51:25.449 (loader):  gauge old value = 4
13:51:25.456 (loader): flash, block=5, bs=1024, auto=1
13:51:25.462 (loader):  gauge old value = 5
13:51:25.465 (loader): flash, block=6, bs=1024, auto=1
13:51:25.469 (loader):  gauge old value = 6
13:51:25.472 (loader): flash, block=7, bs=1024, auto=1
13:51:25.476 (loader):  gauge old value = 7
13:51:25.479 (loader): flash, block=8, bs=1024, auto=1
13:51:25.484 (loader):  gauge old value = 8
13:51:25.487 (loader): flash, block=9, bs=1024, auto=1
13:51:25.491 (loader):  gauge old value = 9
13:51:25.493 (loader): flash, block=10, bs=1024, auto=1
13:51:25.512 (loader):  gauge old value = 10
13:51:25.518 (loader): sending reboot
13:51:25.522 (loader): begin wait_until_offline
13:51:25.626 (loader): offline, waited 2
13:51:25.627 (loader): end operation, total time = 0.352 seconds
13:51:25.630 (loader): set background IMG_REBOOT_OK
13:51:25.633 (loader): redraw timer set, image 14 to show for 1200 ms
13:51:26.833 (loader): redraw, image 9
The board is recognized on COM 11 (serial monitor works correctly with Serial.println("hello world")) and I was able to successfully manually upload this hex file (and other files such as fast_blink.ino) to the board, but the IDE would still say "compiling sketch..." and would never finish (green progress bar in bottom right doesn't fill up completely). This happens when I try to compile for all Teensy boards on my machine, but Arduino boards work as expected. This was the first time that I used a Teensy device on my computer, but I also tested this board on another machine and it works as it's supposed to so I don't think it is a faulty board.

I also get no error message. The last info received from the IDE before the teensy loader window is opened and getting stuck in the loop is the posted verbose output

Could it be an issue with my installation path? The other machine that I tested the board successfully on has only 1 "C:\\" drive, but I have "C:\\" and "D:\\". Again, I can compile and upload sketches manually, however it is annoying when I have to track down the hex file in my directory and hit the "program" button on the teensy every time.

Thanks for any advice