Atmega328P power issues. [SOLVED: BOD levels]

Hello everyone.

I am trying to use standalone ATMega328P but i am having some really weird power issues.
I've been using ATMega8 with my device and its been doing just fine but i ran out of memory so i decided to migrate to 328 .
Both controllers were programed the same way: through arduino ISP (with different settings ofc.), both 8MHz.
Device contain like 20 LEDs , 2 shift registers , buzzer , nothing fancy .
I have been experimenting with power supply and while ATmega8 could operate between 2-4V easily, 328P couldn't. More precisely ATMega328P was just working at 1st but after few seconds it kept restarting in random places.
Been trying to feed it up to 4V where it started slowing down(?!) and then just stopped working.
Current isn't problem as well, checked up to 2Amps.
I am clueless. Any help would be great.

You set the BOD level too high.

I've been googling it but didn't really find what are those.
Any more details? Are those set by default to some value or something?
What do I need to do with this ?

impp:
I've been googling it but didn't really find what are those.
Any more details? Are those set by default to some value or something?
What do I need to do with this ?

BOD == Brown-Out Detection

Yes, you need to lower or turn-off that future.

Here: www.engbedded.com/fusecalc/

Ray

Tanks a lot guys! It worked!

I had BOD set to 2.7V.

For other people who could have same problem:
When you burn bootloader to your microcontroller through arduinoISP you need to modify value of "bootloader.extended_fuses" in boards file to desired value.
bootloader.extended_fuses=0x07 is BOD disabled.
0x06 BOD level at VCC=1.8V
0x05 BOD level at VCC=2.7V
0x04 BOD level at VCC=4.3V