Bakhanbeigi
Member
Recently, I migrated to the NixOs and installed PlatformIO core on it. Here is the output of the upload command:
I can find the teensy_loader_cli in platformio directory:
Installing packages like teensy-udev-rules and teensy-loader-cli did not help.
Could you help me to know how should I fix this issue?
Code:
pio run -t upload
Processing teensy41 (platform: teensy; board: teensy41; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing teensy
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: teensy@5.0.0 has been installed!
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi-teensy @ ~1.110301.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-gccarmnoneeabi-teensy@1.110301.0 has been installed!
Tool Manager: Installing platformio/framework-arduinoteensy @ ~1.159.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-arduinoteensy@1.159.0 has been installed!
Tool Manager: Installing platformio/tool-teensy @ <2
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-teensy@1.159.0 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40502.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-scons@4.40502.0 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (5.0.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.159.0 (1.59)
- tool-teensy @ 1.159.0 (1.59)
- toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 96 compatible libraries
Scanning dependencies...
Dependency Graph
|-- XPT2046_Touchscreen @ 0.0.0-alpha+sha.26b691b2c8
|-- lvgl @ 9.1.0
|-- TFT_eSPI @ 2.5.43
|-- Audio @ 1.3
|-- SD @ 2.0.0
|-- SPI @ 1.0
|-- SerialFlash
|-- Wire @ 1.0
|-- EEPROM @ 2.0
|-- USBHost_t36 @ 0.2
Building in release mode
Linking .pio/build/teensy41/firmware.elf
Checking size .pio/build/teensy41/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Building .pio/build/teensy41/firmware.hex
Configuring upload protocol...
AVAILABLE: jlink, teensy-cli, teensy-gui
CURRENT: upload_protocol = teensy-gui
Uploading .pio/build/teensy41/firmware.hex
Opening Teensy Loader...
Unable find Teensy Loader. (p) Is the Teensy Loader application running?
quitscons: *** [upload] Error 1
I can find the teensy_loader_cli in platformio directory:
Code:
ls ~/.platformio/packages/tool-teensy/
00-teensy.rules mktinyfat stdout_redirect teensy_gateway teensy_post_compile teensy_serialmon
lib package.json T4Security.jar teensy_loader_cli teensy_reboot teensy_size
libpng12.so.0 precompile_helper teensy teensy_loader_cli_bin teensy_restart
libusb-0.1.so.4 pre_uninstall.sh teensy_cleanup teensy_ports teensy_secure
Installing packages like teensy-udev-rules and teensy-loader-cli did not help.
Could you help me to know how should I fix this issue?