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

PaulMcM

  • 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?


tolson

  • Global Moderator
  • *****
  • Posts: 870
  • Karma: +20/-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 »

bsiever

  • 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: http://www.rfdigital.com/wp-content/uploads/2015/08/RFduino-Quick-Start-Guide-08.21.15-11.40AM.pdf

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

  Bill