-2

we have an error after compiling the code in arduinouno that is displayed as
error: 'power_usi_disable' was not declared in this scope in Board: "Arduino/Genuino Uno".how to rectify this error. please reply us fast

1 Answer 1

3

The Arduino Uno does not have a USI peripheral. Thus, you cannot disable the power of the (non-existent) USI, and there is no power_usi_disable() function.

Solution: remove the call to power_usi_disable() from your code.

Update: To answer your new question in the comment, WDTCR is the Watchdog Timer Control Register on some AVR chips. On the Uno it is called WDTCSR, because it is a control and status register.

Looks to me like you have downloaded from somewhere a program you do not understand. That program was written for an ATtiny chip and you are trying to compile it as-is for an Arduino Uno, which is based on an (incompatible) ATmega328P. That's not the way to do it: you have to understand the program and rewrite all the ATtiny specific stuff to fit the Uno.

3
  • Thank you ,but we have an other error exit status 1 'WDTCR' was not declared in this scope. plz help us Commented Aug 23, 2016 at 10:07
  • Check the board selection in the Arduino IDE Tools menu. Also please post source code and compiler warnings/errors. Commented Aug 23, 2016 at 10:14
  • @ppsrc: Se amended answer. Commented Aug 23, 2016 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.