Agreed, head unit should not throw a code at all.
As for the alternator, it could be the problem, though I would lean towards the wiring. Take it over to Advance Auto, they should be able to test it for you and tell you if it's putting out the proper power. Test should be free.