nothing specific to our bike, but a quick goggle search shows yamaha codes for that have to do with TPS... but for r6, a 14-20 is supposed to be good. kind of a startup throttle position check... not sure why a 17 would keep it from starting.
couple of the other older yamaha forums say, check the battery