Author Topic: cannot find <avr/power.h> during compilation  (Read 1656 times)


  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
cannot find <avr/power.h> during compilation
« on: August 24, 2016, 09:25:56 AM »
I've inherited various RFduino projects that need to be maintained. Unfortunately some of them fail to build on my system and display the following error:

fatal error: avr/power.h: No such file or directory

I've searched for this file and found it at:
C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr\power.h
which I've added to my path, but still no joy.

I'm sure it's something obvious but I'm new to the joys of RFduino and ATmega embedded systems programming. Any ideas?


  • Global Moderator
  • *****
  • Posts: 883
  • Karma: +21/-0
    • View Profile
    • Thomas Olson Consulting
Re: cannot find <avr/power.h> during compilation
« Reply #1 on: August 24, 2016, 02:34:33 PM »
The RFduino is not an Arduino AVR device. It is a ARM Cortex M0 device.

« Last Edit: October 07, 2016, 06:55:12 PM by RFD_Nelson »


  • RFduino Full Member
  • ***
  • Posts: 89
  • Karma: +4/-0
    • View Profile
Re: cannot find <avr/power.h> during compilation
« Reply #2 on: August 24, 2016, 06:05:24 PM »
I suspect that you haven't set up the Arduino environment for the RFduino.

You should follow the QuickStart guide before compiling. See:

After loading the sketch you're trying to maintain make sure that you have the RFduino selected (Tools menu and Boards sub-menu).