LowPower.h is not working for Atmega8A microcontroller

Hello, I successfully uploaded bootloader and blink sketch using Arduino nano to program Atmega8A on breadboard.

But the problem occurred whenever I added #include <LowPower.h> library in my code and tried to upload a sketch then the compiler shown some errors.

compiling for board Arduino NG or older:

Error while detecting libraries included by C:\Users\chand\Documents\Arduino\libraries\LowPower\LowPower.cpp
Generating function prototypes...
C:\Users\chand\Documents\Arduino\libraries\LowPower/LowPower.h:148:6: error: #error "Please ensure chosen MCU is either 88, 168, 168P, 328P, 32U4, 2560 or 256RFR2."
#error "Please ensure chosen MCU is either 88, 168, 168P, 328P, 32U4, 2560 or 256RFR2."
^~~~~
Using library LowPower at version 1.6 in folder: C:\Users\chand\Documents\Arduino\libraries\LowPower
exit status 1
Error compiling for board Arduino NG or older.

The following error with minicore->Atmega8::

C:\Users\chand\Documents\Arduino\libraries\LowPower/LowPower.h:148:6: error: #error "Please ensure chosen MCU is either 88, 168, 168P, 328P, 32U4, 2560 or 256RFR2."
#error "Please ensure chosen MCU is either 88, 168, 168P, 328P, 32U4, 2560 or 256RFR2."
^~~~~
Using library LowPower at version 1.6 in folder: C:\Users\chand\Documents\Arduino\libraries\LowPower
exit status 1
Error compiling for board ATmega8.

Both messages seem to indicate that the LowPower library is not compatible with the Atmega8A. I do not have a solution for that; you'll have to dig.

Your topic has nothing to do with Avrdude, stk500 or with a bootloader and hence has been moved to a more suitable location on the forum.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.