You can't, battery can't be charged, you must change the battery.
If you don't want to loose your ram, change one battery at a time.
There's also a flat battery which store the state of the calc and other stuff, you don't usually need to change this one.