Well, your battery could be fried, could be your rectifier, could be your alternator.
Pray it´s not your alternator, it´s a nightmare on CX engines--it´s behind the flywheel--you have to darn near strip the bike to the frame, drop the engine, split the engine from the transmission, and yank the flywheel. Ugly, ugly, ugly.