The battery is protected by a schottky diode, this will prevent recharging of the battery if external power is applied to PORTB or PORTD on the AVR Butterfly.