This are my first steps (fresh installed environment) with PlatformIO and i run into problems to upload my code to Teensy4 by remote agent.
If i click PlatformIO => PROJECT TASKS => “Remote Upload”, the following is the first output-line:
Executing task in folder smallTestProject: platformio remote run --target upload
To get more output i executed “platformio remote run --target upload -v”, this is the output (of the upload):
Uploading firmware remotely
Processing teensy40 (platform: teensy; board: teensy40; framework: arduino)
AVAILABLE: jlink, teensy-cli, teensy-gui
CURRENT: upload_protocol = teensy-cli
teensy_loader_cli -mmcu=imxrt1062 -w -s -v .pio/build/teensy40/firmware.hex
Unknown MCU type “imxrt1062”
Supported MCUs are:
*** [upload] Error 1
========================== [FAILED] Took 1.89 seconds ==========================
Why i got the message “Unknown MCU type “imxrt1062”” ???
If i switch to the remote (raspberry), and cwd into ~/.platformio/remote/projects/smallTestProject-65256b697b56d59d708bf4158b50512f275f4d6c
and execute the cmd as written in the above output (teensy_loader_cli -mmcu=imxrt1062 -w -s -v .pio/build/teensy40/firmware.hex) the programming of the teensy is done.
So whats my problem?
Is something installed in a incorrect way?
Something configured wrong?
Also tested with a ArduinoDue (same setup) which just worked as expected (no problems during remote upload).
Raspberry (latest raspbian)
platformio-core installed (pio --version = version 4.2.1)
teensy_loader_cli cloned from github and compiled (to be sure it’s in the path, i link in /usr/bin was also created).
Debian 10 as Virtualbox-Guestsystem
VSCodium and PlatformIO installed
New created via ‘PlatformIO Home’->“New Project” and Teensy4 selected.
platform = teensy
board = teensy40
framework = arduino