Cannot compile project with IDE 1.6.7

Hi,

I am a newbie here and just started using Arduino. I have an arduino Uno and M0 Pro,

I have this code which have been using on the Uno but since I needed more processing speed, I opted for the M0 Pro,

When I now apply the SAME code to after selecting Board: "Arduino/Genuino Zero (Programming Port)" [Arduino SAND Boards (32-bits ARM Cortex-140+) by Arduino version 1.6.2 Boards included in this package: Arduino Zero], I have the following compliling errors:

Can somebody PLEASE help me understand where I am going wrong?

Compile Errors.txt (14.6 KB)

C:\Users\Sherzaad\Downloads\arduino-1.6.7\libraries\CAN\mcp2515.c:29:20:fatal error: avr/io.h: No such file or directory

 #include <avr/io.h>

Smoking gun. That library is attempting to include an AVR-specific library, but this is a ARM board, not an AVR board, so the AVR libraries don't exist for that board.

This is likely a symptom of the whole library only supporting AVR-based microcontrollers.

Thanks DrAzzy. I would never have realised that! It was driving me crazy!!!!

Better get on with ajusting the code then! :slight_smile: