shookti
Active member
I am trying to upload a sketch to a Teensy 4.1 on a raspberry pi running raspbian bullseye using arduino-cli, however it throws an error:
Command used:
Output:
The same error was thrown by arduino-ide (version 1.8.x as those are the only ones available for raspbian), that was solved by uninstalling and reinstalling the board using the board manager, suggested by the solution to this post on the arduino forum:
Is there any way to do the same for arduino-cli?
Thanks
Command used:
Code:
arduino-cli compile HardwareTest.ino --output-dir Build/ --fqbn teensy:avr:teensy41 -v
Output:
Code:
FQBN: teensy:avr:teensy41
Using board 'teensy41' from platform in folder: /home/pi/.arduino15/packages/teensy/hardware/avr/1.59.0
Using core 'teensy4' from platform in folder: /home/pi/.arduino15/packages/teensy/hardware/avr/1.59.0
Detecting libraries used...
/home/pi/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/pi/.arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 /tmp/arduino/sketches/92B0F0E14D32A709C62320DED291AF39/sketch/HardwareTest.ino.cpp -o /dev/null
Used platform Version Path
teensy:avr 1.59.0 /home/pi/.arduino15/packages/teensy/hardware/avr/1.59.0
Error during build: fork/exec /home/pi/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++: no such file or directory
The same error was thrown by arduino-ide (version 1.8.x as those are the only ones available for raspbian), that was solved by uninstalling and reinstalling the board using the board manager, suggested by the solution to this post on the arduino forum:
Teensyduino Error: /Library/Arduino15/packages/teensy/hardware/avr/../tools/arm/bin/arm-none-eabi-g++: no such file or directory
Hi @ahuestis23 The tool at the path referenced by the error message should be automatically installed on your computer when you installed the "Teensy" boards platform via the Arduino IDE Boards Manager. It seems something might have gone wrong during the installation. One possible fix is to...
forum.arduino.cc
Is there any way to do the same for arduino-cli?
Thanks
Last edited: