Hi there.
I am pretty new to Mbed Online Compiler, so far I have been using it successfully with a LPC1768 board as a target. Recently I experienced some problems with my firmware, so I wanted to debug it in Mbed Studio. Exporting my project from the Online IDE and importing it in Mbed Studio, I realized that I was not using the right version of mbed-os, so I updated it to the latest version.
Before, I was using a serial communication defined as
Serial pc(USBTX, USBRX);
…
pc.printf((“starting the program \n\r”);
…
but with the newest version of mbed-os I changed this to BufferSerial (as I read elsewhere in the forum). So now my code looks like:
BufferSerial pc(USBTX, USBRX);
…
pc.printf((“starting the program \n\r”);
…
Well, now when I try to compile my project in the IDE I get this error
“Error: No member named ‘printf’ in ‘mbed::BufferedSerial’ in “main.cpp”, Line: 56, Col: 12”.
I am pretty sure that the documentation for BufferedSerial class lists also a printf
function, and that I am using it correclty, but apparently there are problems with what I am doing. I tried to downgrade the mbed-os to a previous version, such as MbedOs 6.2.1 as mentioned in other posts (like this one) but the problem persits.
Can you tell me where the problem is?
Thank you very much,
Italo