Not much info to work with, it would be useful to know what drivetrain your motorhome has, how many batteries and how old etc.
Very generally speaking, yes a failed battery can make an engine not idle correctly and stall. However then you wouldn't be able to start the engine without a jump, so it could be loose or corroded connections at the battery, starter or alternator.
|