-->
Page 1 of 1

avr/io.h compile error esp8266 wemos d1

PostPosted: Wed Jul 27, 2016 1:37 pm
by umutcem
hello dear , problem ;

using esp8266 with can-bus shield (sparkfun)

compile error : C:\Program Files (x86)\Arduino\libraries\Canbus\src\mcp2515.c:29:20: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>


please help me .

Re: avr/io.h compile error esp8266 wemos d1

PostPosted: Wed Jul 27, 2016 2:12 pm
by emtantra
that file which you trying to add is atmega controller header file , remove that and try to compile again.

Re: avr/io.h compile error esp8266 wemos d1

PostPosted: Wed Jul 27, 2016 3:48 pm
by martinayotte
This lib is probably not ESP aware. Hoping that there is no much AVR code in it, otherwise it will be difficult to achive.
Try commenting this include and recompile.