Dependency problems with the RFM69 library

Hello all,

First of all, I hope this is an appropriate way for seeking support for my Feather M0 board. Because I use the Arduino application to sent programs to my Feather, and problem seems to be somewhere in the compilation process, I hope you guys could help me out (or at least point me in the right direction). Right now I spent already three nights on the problem and I still haven't found a solution.

The problem is as follows. A few days ago I started experimenting with a 868 MHz radio (which is placed on a Feather M0 board). Creating very general code and pushing this successfully to the Feather works fine. However, recently I stumbled upon the following web page (Using the RFM69 Radio | Adafruit Feather M0 Radio with RFM69 Packet Radio | Adafruit Learning System). To me it sounds like a great way to see what goes around on that spectrum. I followed the page word by word, however in my case the program won't compile; it rather produces an error:

Arduino\libraries\RFM69\RFM69_OTA.cpp:35:21: fatal error: avr/wdt.h: No such file or directory

 #include <avr/wdt.h>

Also, I would like to mention that I installed the libraries that the code required:

Up until now I spent a lot of time asking people around me to help me look in the right direction, but still no luck there (they can't solve it either). Another thing I did was spending a lot of time searching the internet about any clues that could solve this. The problem was that some people implied that this avr library should already be available on your system. Some other people said that you had to install the avr-libc library manually in the library you are using. So that's what I did (Index of /releases/avr-libc/ version 2.0.0); this got rid of the first error but produced a lot of them in advance....

In file included from ...\Arduino\libraries\RFM69\RFM69_OTA.cpp:35:0:

...\Arduino\libraries\RFM69/avr/wdt.h: In function 'void wdt_enable(uint8_t)':

...\Arduino\libraries\RFM69/avr/wdt.h:409:36: error: '_SFR_IO_REG_P' was not declared in this scope

  if (_SFR_IO_REG_P (_WD_CONTROL_REG))

                                    ^

....\Arduino\libraries\RFM69/avr/wdt.h:419:40: error: '_SFR_IO_ADDR' was not declared in this scope

     : "I" (_SFR_IO_ADDR(_WD_CONTROL_REG)),

                                        ^

... and so on.

Another thing that I tried was calling the RFM69 library in a very simple hello world script; this also produced the same errors. At this point I am really out of options. Could somebody please help me, or just point in the direction that I could look?

Thanks in advance.

Regards,

Yournamezz

That library is only cpmpatible.with AVR based microcontrollers - you can tell because it's trying to include the avr specific wdt library. The M0 is not based on an avr micro, so the library will not work with it. You must find a library compatible with your board or write/adapt one yourself.

Thank you very much for your response. I get it, I will see if I find a compatible library.