Raspberry PI Zer <-> CLI: invalid item

Hello,
I have a problem.
I connect a Raspberry PI Zero W (current headless image) to a MKR 1010 using a MicroUSB-> MicroUSB cable (data pins: white on white, green on green).

Here are the following issues:

pi@raspberry:~ $ arduino-cli board list
Port         Type              Board Name            FQBN                     Core
/dev/ttyACM0 Serial Port (USB) Arduino MKR WiFi 1010 arduino:samd:mkrwifi1010 arduino:samd
/dev/ttyAMA0 Serial Port       Unknown
pi@raspberry:~ $ arduino-cli core install arduino:samd:mkrwifi1010
Invalid argument passed: invalid item arduino:samd:mkrwifi1010

-> invalid item
what is wrong?

Many thanks for your help!

The argument to th earduino-cli core install command is the platform (AKA "core") name, which has the form "vendor:architecture". You've passed it the FQBN of the MKR WiFi 1010, arduino:samd:mkrwifi1010. You need to instead pass it the platform name listed under the "Core" column: arduino:samd. So the command to install the arduino:samd platform is:

arduino-cli core install arduino:samd

Hello,

thanks for the quick response.

The samd installation works. The error remains here:

arduino-cli core install arduino:samd:mkrwifi1010

And I am getting a compiler error:

pi@raspberry:~ $ arduino-cli core install arduino:samd
pi@raspberry:~ $

pi@raspberry:~ $ arduino-cli core install arduino:samd:mkrwifi1010
Invalid argument passed: invalid item arduino:samd:mkrwifi1010
pi@raspberry:~ $

pi@raspberry:~ $ arduino-cli sketch new MyFirstSketch
Sketch created in: /home/pi/MyFirstSketch
pi@raspberry:~ $ cat MyFirstSketch/MyFirstSketch.ino

void setup() {
}

void loop() {
}
pi@raspberry:~ $

pi@raspberry:~ $ arduino-cli compile --fqbn arduino:samd:mkrwifi1010 MyFirstSketch
/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/WInterrupts.c: In function 'detachInterrupt':
/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/WInterrupts.c:199:1: internal compiler error: Illegal instruction
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/cortex_handlers.c: In function 'Reset_Handler':
/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/cortex_handlers.c:188:1: internal compiler error: Illegal instruction
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Error during build: exit status 1
pi@raspberry:~ $ arduino-cli core list
ID           Installed Latest Name
arduino:samd 1.8.11    1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)

OK, let's see if it's tied to a specific version of the arduino:samd platform. There was a big change in the arduino:samd platform's core library in 1.8.10, so try 1.8.9:

arduino-cli core install arduino:samd@1.8.9

Then try compiling again. If the problem persists, try installing 1.6.21:

arduino-cli core install arduino:samd@1.6.21

The arm-none-eabi-gcc compiler version was upgraded after that.

Unfortunately, I think the RPi Zero support is a bit patchy because it uses a different ARM architecture version than the more high end ARM SBCs.

Thank you very much!

pi@raspberry:~ $ arduino-cli core list
ID           Installed Latest Name
arduino:samd 1.6.21    1.6.21 Arduino SAMD Boards (32-bits ARM Cortex-M0+)

pi@raspberry:~ $ arduino-cli compile --fqbn arduino:samd:mkrwifi1010 MyFirstSketch
Sketch uses 11024 bytes (4%) of program storage space. Maximum is 262144 bytes.

I hope everything goes well with the version 1.6.21.
I should use the identical arduino ide version.

I'm very glad to see that successful compilation.

Enjoy!
Per

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.