Have you checked/cleaned/tighten both battery terminals?
And battery ground cable? Sounds like corrosion somewhere...
If you disconnect battery cables, feed 12V to cables before disconnecting them!
Here in the Land of the Finns, this is normal procedure, if doing something battery related!
By doing this you don't have to ask radio code, like most of folks here!