if your bike is a 180 series one with Bosch ignition (BTZ) and alternator,(which I suspect it is) then an "intermittent" charging light soon followed by a permanently on charging light will clearly indicate that the original (Bosch) regulator/rectifier is cattle trucked. They are no longer available new, get a replacement from "Electrexworld" but be sure to pay that little bit more money and get one which has the charge light enabled (cheaper units do not have this) and Electrexworld sell the cheap ones as well. A small modification is required to the wiring if you go down that route, the replacement unit is supplied with some long tails, which require the connections crimping on to them to mate up to your existing loom, the quality if this work does have to be very high so if you attempt it, those connection must be very sound, pre-insulated crimped connectors will be of no use. In addition you will have to drill one extra hole in the mounting plate, this can be tricky since there is very little space to get an electric drill in to do the job, with everything still attached to the bike (desiralable).If an angled and cordless drill is available then you will have to trouble, luckily I have one, but without it, it will be a struggle and to fit it on a single bolt (instead of two) will be hopeless. The new unit needs to be suitable for this single phase DC alternator, Elexctrexworld will understand what you need.
An alternative is to source a working original Bosh unit, which I did recently from poxy coxy the short arsed shitter from Solihull (well actually, not all poxy, or a shitter or even any longer from Solihull, and a very good mate who I trust and for a very long time, but I do like to extract the urine)
CLEM