Error by using Fastserial Example Sketch?

Hello,

im trying to use the mavlink library and for that i need to use also the Fastserial-Library, but unfortunately they gives me errors. For better debug i just tried the Fastserial example sketch, which also throws me an error:

In file included from FastSerial.pde:15:
C:\Users\VaSa\Documents\Arduino\libraries\FastSerial/FastSerial.h:53: fatal error: avr/io.h: No such file or directory
compilation terminated.

Slected µC: Arduino DUE

Does anybody know what's wrong? Why it looks for the avr/io.h Library when the selected µC is the DUE?
Thank you all!

Why it looks for the avr/io.h Library when the selected µC is the DUE?

I think you've answered your own question.

AWOL, i think it depends on the viewpoint :slight_smile: ...
I also recognized that it also throws error with the arduino uno:

processing.app.debug.RunnerException
	at processing.app.debug.Compiler.getCommandCompilerS(Compiler.java:498)
	at processing.app.debug.Compiler.compileFiles(Compiler.java:201)
	at processing.app.debug.Compiler.compileLibraries(Compiler.java:590)
	at processing.app.debug.Compiler.compile(Compiler.java:97)
	at processing.app.Sketch.build(Sketch.java:1572)
	at processing.app.Sketch.build(Sketch.java:1551)
	at processing.app.Editor$DefaultRunHandler.run(Editor.java:1925)
	at java.lang.Thread.run(Thread.java:619)

Im using the Arduino 1.5.2

It's nothing to do with "viewpoint" that lib is clearly NOT written for the DUE. I expect its old than the DUE.

If you want to use it on the DUE you need to do the rewrite of the I/O.

Mark

holmes4:
It's nothing to do with "viewpoint" that lib is clearly NOT written for the DUE. I expect its old than the DUE.

If you want to use it on the DUE you need to do the rewrite of the I/O.

Mark

thane tell me please why it doesn't worke also for the UNO/MEGA...?

i just tested in the Arduino 1.0.5. and it works fine.
So it seems that issue of the new Libraries which comes with newer Arduino IDE versions!??
Does anybody faced with this error and solved it?

There have been changes to the IDE, it's up to the author to keep up with the IDE. There are just too many libs out there for any one keep them upto date.

Lib that come with the IDE should be OK, but anything else (including stuff in the playground ) needs to be treated with a lot of care.

Mark