Hi.
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)([“upload”], [".pio/build/teensy40/firmware.hex"])
AVAILABLE: jlink, teensy-cli, teensy-gui
CURRENT: upload_protocol = teensy-cli
teensy_reboot -s
teensy_loader_cli -mmcu=imxrt1062 -w -s -v .pio/build/teensy40/firmware.hex
Unknown MCU type “imxrt1062”
Supported MCUs are:
- at90usb162
- atmega32u4
- at90usb646
- at90usb1286
- mkl26z64
- mk20dx128
- mk20dx256
- mk66fx1m0
- mk64fx512
- TEENSY2
- TEENSY2PP
- TEENSYLC
- TEENSY30
- TEENSY31
- TEENSY35
- TEENSY36
*** [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).
Setup remote
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).
udev-rules installed
Setup Development
Debian 10 as Virtualbox-Guestsystem
VSCodium and PlatformIO installed
Project:
New created via ‘PlatformIO Home’->“New Project” and Teensy4 selected.
platformio.ini:
[env:teensy40]
platform = teensy
board = teensy40
framework = arduino