Issue with Teensy loader on Platformio

lafleur

Member
For the last few weeks, my Teensy 4.1 development with Platformio, Visual Studio Code has been stable...
But now the Platformio system can no longer locate the Teensy loader...
Loader works fine under Arduino 2.3.6
I removed all of VSC and Platformio and re installed, but still have issue..
looking for suggestion on where to look!
Thanks

Code:
Configuring upload protocol...
AVAILABLE: jlink, teensy-cli, teensy-gui
CURRENT: upload_protocol = teensy-cli
Rebooting...
Uploading .pio/build/teensy41/firmware.hex
sh: teensy_loader_cli: command not found
sh: teensy_loader_cli: command not found
*** [upload] Error 127

Code:
; *************************************************************
[env:teensy41]

platform = https://github.com/tsandmann/platform-teensy.git

platform_packages =
  toolchain-gccarmnoneeabi@file:///Users/lafleur/Desktop/PIO:Teensy:1.60.4/toolchain-gccarmnoneeabi
  framework-arduinoteensy@file:///Users/lafleur/Desktop/PIO:Teensy:1.60.4/framework-arduinoteensy
  tool-teensy@file:///Users/lafleur/Desktop/PIO:Teensy:1.60.4/tool-teensy

board = teensy41
framework = arduino
lib_deps =
    https://github.com/tsandmann/freertos-teensy.git
    moononournation/GFX Library for Arduino@^1.6.0
build_flags = -Wformat=1 -DUSB_SERIAL -DTEENSY_OPT_FASTER_LTO  -w
upload_flags = -v
upload_protocol = teensy-cli
 
CURRENT: upload_protocol = teensy-cli

Maybe you want this to be "teensy-gui" for (graphical) Teensy Loader to work?

If that didn't help, Teensy Loader has a Verbose Information feature in the Help menu. Lots of activity gets logged in Verbose Information, including the communication Teensy Loader receives from the utilities the IDE runs to tell it to take actions. Maybe comparing those lines with what you get when a using working system (eg, try Arduino IDE) can lead to some insight.
 
I completely uninstalled everything, deleted all the preference files and reinstalled all, appears to be working fine now.

Thank you for your help
 
Back
Top