Suggest two different problems - the first being a failed bulb, the second being a problem in the charging circuit.
Perhaps you could give us more information to the flickering - does it occur randomly, or when an additional load such as brake lights, A/C, fan, or other load is switched in?