.....I put a knife switch on the cranking battery. That way, while charging, I can cut off all juice to the motor and any other items, i.e.....depth finders, lights, etc.
I had a problem on my previous boat, burned up the starter magneto or something while charging the batteries.
Knife switch works well for me, you can get one at an RV Dealer.