I using the cloud compiler and a (brand new) Photon. I occasionally/frequently get the following error message:
error: 'class USBSerial' has no member named 'printf'
error: ‘class SystemClass’ has no member named ‘ticksPerMicrosecond’
but then I’ll re-compile my code (without having changed anything) and it’ll compile just fine (and flash and run fine).
One thing I’ve noticed (and I hesitate to even mention it because it sounds crazy and should be completely irrelevant based on my model of how software works) is that this happens more frequently when the program running in the Photon is doing output to the serial port at the time of the compilation/flashing. (Compiling and flashing are done over the air …) I had a serial.println() by mistake being invoked everything time through ‘loop()’, and it took a dozen tries or more to flash a fixed version. As I reduced the serial.print calls the above error messages happened less frequently.
Post hoc ergo and all that, I know, but … Any ideas about what’s going on here?