No spark is usually due to stator... occasionally coil; it is almost never the CDI's fault - but it has happened.
But, the electical components usually dont die when just sitting. I'd suspect it's much more likely a corroded connection from sitting for over a year. Walk through and unplug, clean and replug all connections between the stator and CDI, coil and CDI and coil ground.
The CDI gets power from the run/stop switch and. When the CDI is properly powered and working, and if the neutral switch and relay is working correctly, the CDI provides 12V to the starter solenoid... SO, if the engine cranks over from the start switch, the CDI is at least powered and partially working, and all necessary switches, relays and the fuse are working correctly.
This is excellent information, but this puts me back to square one!
I have same problem as we speak, no spark. Bike was getting started weekly, but then just would not start.
I have new spark plug, checked the ignition coil resistances as per manual, checked the pick up coil and direction of rotation coil resistances as per manual, checked the kill switch, did various continuity tests on cables. Just as I thought it can only be the CDI, I read your post.
Bike turns over fine with the starter, but no spark. I have uncoupled all the connectors, cleaned them out, but still no spark.
Last thing I wanna do is take it to the stealership, for in the past I have managed to solve all the problems on the 350 myself, but this one has got me stuck now!