Hi,
why this:
cout << F("CPU Frequency: ") << ESP.getCpuFreqMHz() << F(" MHz") << endl;
expression does not work?
I get this result:
CPU Frequency: P MHz
By the way, this expression:
Serial.printf("CPU Frequency: %i MHz\n", ESP.getCpuFreqMHz());
works fine!
You missed the point. << is already working, the question is why the CPU frequency shows as "P".
The answer is that ESP.getCpuFreqMHz() returns uint8_t which is printed as a character. Cast it to a larger integer type, e.g.