SercomSPISlave - compatibility matrix

This report was generated on Wednesday, 23-Feb-22 22:48:15 CET using arduino-testlib.

SercomSPISlave

Version: 0.1.0
More details

Compatibility matrix

Board Claims compatibility Inclusion
Sercom0SPISlave
Sercom1SPISlave
Sercom4SPISlave
arduino:avr:uno
1.8.4
No FAIL FAIL FAIL FAIL
arduino:mbed_nano:nanorp2040connect
2.7.2
No FAIL FAIL FAIL FAIL
arduino:megaavr:nona4809
1.8.7
No FAIL FAIL FAIL FAIL
arduino:samd:mkrwifi1010
1.8.12
Yes PASS PASS PASS FAIL
esp32:esp32:d1_mini32
1.0.6
No FAIL FAIL FAIL FAIL

Compilation logs

arduino:avr:uno @ 1.8.4

Inclusion

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom0init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: note: suggested alternative: 'PORT0'
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
     PORT0
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
                 ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:17: note: suggested alternative: 'PORT0'
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
                 ^~~~~
                 PORT0
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:63:3: error: 'SERCOM0' was not declared in this scope
   SERCOM0->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:18: error: 'SERCOM0_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:3: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
   ^~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:72:3: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM0_IRQn,2);
   ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: note: suggested alternative: 'SCL'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
   SCL
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:39: error: 'GCM_SERCOM0_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:76:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:77:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:79:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
In file included from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/avr/io.h:272:0,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/avr/pgmspace.h:90,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/avr/1.8.4/cores/arduino/Arduino.h:28,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.h:25,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:22:
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:82:26: error: expected unqualified-id before numeric constant
   SERCOM0->SPI.CTRLA.bit.DORD = 0; //MSB first
                          ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:83:26: error: expected unqualified-id before numeric constant
   SERCOM0->SPI.CTRLA.bit.CPOL = 0; //SCK is low when idle, leading edge is rising edge
                          ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:84:26: error: expected unqualified-id before numeric constant
   SERCOM0->SPI.CTRLA.bit.CPHA = 0; //data sampled on leading sck edge and changed on a trailing sck edge
                          ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom1init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: note: suggested alternative: 'PORT0'
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
     PORT0
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
                 ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:17: note: suggested alternative: 'PORT0'
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
                 ^~~~~
                 PORT0
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:144:3: error: 'SERCOM1' was not declared in this scope
   SERCOM1->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:18: error: 'SERCOM1_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:3: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
   ^~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:153:3: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM1_IRQn,2);
   ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: note: suggested alternative: 'SCL'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
   SCL
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:39: error: 'GCM_SERCOM1_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:157:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:158:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:160:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
In file included from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/avr/io.h:272:0,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/avr/pgmspace.h:90,
                 from /home/ec2-user/arduino-testlib

examples/Sercom0SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino: In function 'void SERCOM0_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino:58:19: error: 'SERCOM0' was not declared in this scope
   data = (uint8_t)SERCOM0->SPI.DATA.reg;
                   ^~~~~~~

examples/Sercom1SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino: In function 'void SERCOM1_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino:60:24: error: 'SERCOM1' was not declared in this scope
   uint8_t interrupts = SERCOM1->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~

examples/Sercom4SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino: In function 'void SERCOM4_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:60:24: error: 'SERCOM4' was not declared in this scope
   uint8_t interrupts = SERCOM4->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~

arduino:mbed_nano:nanorp2040connect @ 2.7.2

Inclusion

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom0init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: note: suggested alternative: 'OCT'
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
     OCT
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
                 ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:63:3: error: 'SERCOM0' was not declared in this scope
   SERCOM0->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:63:3: note: suggested alternative: 'ECOMM'
   SERCOM0->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
   ECOMM
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:18: error: 'SERCOM0_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:18: note: suggested alternative: 'I2C0_IRQn'
   NVIC_EnableIRQ(SERCOM0_IRQn);
                  ^~~~~~~~~~~~
                  I2C0_IRQn
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: note: suggested alternative: 'SCK'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
   SCK
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:39: error: 'GCM_SERCOM0_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:76:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:77:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:79:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:79:28: note: suggested alternative: 'I2C_IC_STATUS_TFNF_MSB'
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
                            I2C_IC_STATUS_TFNF_MSB
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom1init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: note: suggested alternative: 'OCT'
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
     OCT
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
                 ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:144:3: error: 'SERCOM1' was not declared in this scope
   SERCOM1->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:144:3: note: suggested alternative: 'ECOMM'
   SERCOM1->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
   ECOMM
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:18: error: 'SERCOM1_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:18: note: suggested alternative: 'I2C1_IRQn'
   NVIC_EnableIRQ(SERCOM1_IRQn);
                  ^~~~~~~~~~~~
                  I2C1_IRQn
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: note: suggested alternative: 'SCK'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
   SCK
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:39: error: 'GCM_SERCOM1_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:157:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:158:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:160:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:160:28: note: suggested alternative: 'I2C_IC_STATUS_TFNF_MSB'
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
                            I2C_IC_STATUS_TFNF_MSB
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom4init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:203:3: error: 'PORT' was not declared in this scope
   PORT->Group[PORTA].PINCFG[12].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PA12 Arduino PIN22
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:203:3: note: suggested alternative: 'OCT'
   PORT->Group[PORTA].PINCFG[12].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PA12 Arduino PIN22
   ^~~~
   OCT
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:203:15: error: 'PORTA' was not declared in this scope
   PORT->Group[PORTA].PINCFG[12].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PA12 Arduino PIN22
               ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:205:15: error: 'PORTB' was not declared in this scope
   PORT->Group[PORTB].PINCFG[9].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PB09 Arduino PIN16
               ^~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:228:3: error: 'SERCOM4' was not declared in this scope
   SERCOM4->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:228:3: note: suggested alternative: 'ECOMM'
   SERCOM4->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
   ECOMM
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.c

examples/Sercom0SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino: In function 'void SERCOM0_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino:58:19: error: 'SERCOM0' was not declared in this scope
   data = (uint8_t)SERCOM0->SPI.DATA.reg;
                   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino:58:19: note: suggested alternative: 'ECOMM'
   data = (uint8_t)SERCOM0->SPI.DATA.reg;
                   ^~~~~~~
                   ECOMM

examples/Sercom1SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino: In function 'void SERCOM1_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino:60:24: error: 'SERCOM1' was not declared in this scope
   uint8_t interrupts = SERCOM1->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino:60:24: note: suggested alternative: 'ECOMM'
   uint8_t interrupts = SERCOM1->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~
                        ECOMM

examples/Sercom4SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino: In function 'void SERCOM4_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:60:24: error: 'SERCOM4' was not declared in this scope
   uint8_t interrupts = SERCOM4->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:60:24: note: suggested alternative: 'ECOMM'
   uint8_t interrupts = SERCOM4->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~
                        ECOMM

arduino:megaavr:nona4809 @ 1.8.7

Inclusion

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom0init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: note: suggested alternative: 'PORTD'
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^~~~
     PORTD
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:63:3: error: 'SERCOM0' was not declared in this scope
   SERCOM0->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:18: error: 'SERCOM0_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:3: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
   ^~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:72:3: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM0_IRQn,2);
   ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: note: suggested alternative: 'SCL'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^~~~
   SCL
In file included from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:677:0,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/String.h:31,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/IPAddress.h:24,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/ArduinoAPI.h:30,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/Arduino.h:23,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.h:25,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:22:
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:9: error: expected unqualified-id before '(' token
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
         ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:39: error: 'GCM_SERCOM0_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:23: note: suggested alternative: 'CLKCTRL_t'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
                       CLKCTRL_t
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:76:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:76:13: note: suggested alternative: 'CLKCTRL_PEN_bp'
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^~~~~~~~~~~~~~~~~~~~~~
             CLKCTRL_PEN_bp
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:77:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:77:13: note: suggested alternative: 'CLKCTRL_CLKSEL_t'
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^~~~~~~~~~~~~~~~~~
             CLKCTRL_CLKSEL_t
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:79:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^~~~~~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom1init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: note: suggested alternative: 'PORTD'
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^~~~
     PORTD
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:144:3: error: 'SERCOM1' was not declared in this scope
   SERCOM1->SPI.CTRLA.bit.ENABLE =0;
   ^~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:18: error: 'SERCOM1_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
                  ^~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:3: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
   ^~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:153:3: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM1_IRQn,2);
   ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: note: suggested alternative: 'SCL'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^~~~
   SCL
In file included from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:677:0,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/String.h:31,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/IPAddress.h:24,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/ArduinoAPI.h:30,
                 from /home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/Arduino.h:23,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.h:25,
                 from /home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:22:
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:9: error: expected unqualified-id before '(' token
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
         ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:39: error: 'GCM_SERCOM1_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                                       ^~~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:23: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:23: note: suggested alternative: 'CLKCTRL_t'
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                       ^~~~~~~~~~~~~~~
         

examples/Sercom0SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino: In function 'void SERCOM0_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino:58:19: error: 'SERCOM0' was not declared in this scope
   data = (uint8_t)SERCOM0->SPI.DATA.reg;
                   ^~~~~~~

examples/Sercom1SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino: In function 'void SERCOM1_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino:60:24: error: 'SERCOM1' was not declared in this scope
   uint8_t interrupts = SERCOM1->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~

examples/Sercom4SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino: In function 'void SERCOM4_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:60:24: error: 'SERCOM4' was not declared in this scope
   uint8_t interrupts = SERCOM4->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^~~~~~~

arduino:samd:mkrwifi1010 @ 1.8.12

Inclusion

Result: PASS

Sketch uses 12156 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2996 bytes (9%) of dynamic memory, leaving 29772 bytes for local variables. Maximum is 32768 bytes.

examples/Sercom0SPISlave

Result: PASS

Sketch uses 13252 bytes (5%) of program storage space. Maximum is 262144 bytes.
Global variables use 3000 bytes (9%) of dynamic memory, leaving 29768 bytes for local variables. Maximum is 32768 bytes.

examples/Sercom1SPISlave

Result: PASS

Sketch uses 13280 bytes (5%) of program storage space. Maximum is 262144 bytes.
Global variables use 3000 bytes (9%) of dynamic memory, leaving 29768 bytes for local variables. Maximum is 32768 bytes.

examples/Sercom4SPISlave

Result: FAIL

/tmp/arduino-sketch-4380CAF8CD0FC0566309BC0A2E05823F/core/variant.cpp.o: In function `SERCOM4_Handler':
/home/ec2-user/arduino-testlib/cli-datadir/data/packages/arduino/hardware/samd/1.8.12/variants/mkrwifi1010/variant.cpp:256: multiple definition of `SERCOM4_Handler'
/tmp/arduino-sketch-4380CAF8CD0FC0566309BC0A2E05823F/sketch/Sercom4SPISlave.ino.cpp.o:/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:55: first defined here
collect2: error: ld returned 1 exit status

esp32:esp32:d1_mini32 @ 1.0.6

Inclusion

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom0init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
     ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:38:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[8].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM0 SPI PA08
                 ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:63:3: error: 'SERCOM0' was not declared in this scope
   SERCOM0->SPI.CTRLA.bit.ENABLE =0;
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:18: error: 'SERCOM0_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:71:30: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM0_IRQn);
                              ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:72:34: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM0_IRQn,2);
                                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:39: error: 'GCM_SERCOM0_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:75:55: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM0_CORE) | //Generic Clock 0
                                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:76:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:77:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:79:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom1init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:5: error: 'PORT' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
     ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:119:17: error: 'PORTA' was not declared in this scope
     PORT->Group[PORTA].PINCFG[16].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM1 SPI PA16 Arduino PIN11
                 ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:144:3: error: 'SERCOM1' was not declared in this scope
   SERCOM1->SPI.CTRLA.bit.ENABLE =0;
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:18: error: 'SERCOM1_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:152:30: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM1_IRQn);
                              ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:153:34: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM1_IRQn,2);
                                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:39: error: 'GCM_SERCOM1_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:156:55: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM1_CORE) | //Generic Clock 0
                                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:157:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:158:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:160:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp: In member function 'void SercomSPISlave::Sercom4init()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:203:3: error: 'PORT' was not declared in this scope
   PORT->Group[PORTA].PINCFG[12].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PA12 Arduino PIN22
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:203:15: error: 'PORTA' was not declared in this scope
   PORT->Group[PORTA].PINCFG[12].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PA12 Arduino PIN22
               ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:205:15: error: 'PORTB' was not declared in this scope
   PORT->Group[PORTB].PINCFG[9].bit.PMUXEN = 0x1; //Enable Peripheral Multiplexing for SERCOM4 SPI PB09 Arduino PIN16
               ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:228:3: error: 'SERCOM4' was not declared in this scope
   SERCOM4->SPI.CTRLA.bit.ENABLE =0;
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:236:18: error: 'SERCOM4_IRQn' was not declared in this scope
   NVIC_EnableIRQ(SERCOM4_IRQn);
                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:236:30: error: 'NVIC_EnableIRQ' was not declared in this scope
   NVIC_EnableIRQ(SERCOM4_IRQn);
                              ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:237:34: error: 'NVIC_SetPriority' was not declared in this scope
   NVIC_SetPriority(SERCOM4_IRQn,2);
                                  ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:240:3: error: 'GCLK' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM4_CORE) | //Generic Clock 0
   ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:240:39: error: 'GCM_SERCOM4_CORE' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM4_CORE) | //Generic Clock 0
                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:240:55: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
   GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(GCM_SERCOM4_CORE) | //Generic Clock 0
                                                       ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:241:13: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
             GCLK_CLKCTRL_GEN_GCLK0 | // Generic Clock Generator 0 is the source
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:242:13: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
             GCLK_CLKCTRL_CLKEN; // Enable Generic Clock Generator
             ^
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/src/SercomSPISlave.cpp:244:28: error: 'GCLK_STATUS_SYNCBUSY' was not declared in this scope
   while(GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY); //Wait for synchronisation
                            ^

examples/Sercom0SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino: In function 'void SERCOM0_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom0SPISlave/Sercom0SPISlave.ino:58:19: error: 'SERCOM0' was not declared in this scope
   data = (uint8_t)SERCOM0->SPI.DATA.reg;
                   ^

examples/Sercom1SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino: In function 'void SERCOM1_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom1SPISlave/Sercom1SPISlave.ino:60:24: error: 'SERCOM1' was not declared in this scope
   uint8_t interrupts = SERCOM1->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^

examples/Sercom4SPISlave

Result: FAIL

WARNING: library SercomSPISlave claims to run on samd architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino: In function 'void SERCOM4_Handler()':
/home/ec2-user/arduino-testlib/cli-datadir/user/libraries/SercomSPISlave/examples/Sercom4SPISlave/Sercom4SPISlave.ino:60:24: error: 'SERCOM4' was not declared in this scope
   uint8_t interrupts = SERCOM4->SPI.INTFLAG.reg; //Read SPI interrupt register
                        ^