7 months, 4 weeks ago.
How can I get the MBED error output when compiling with PlatformIO?
Hi, I am trying to get the MBED Error output over RTT or Serial, but neither of them works. I read somewhere, that I have to compile the Project with the MBED cli in order to get the error output working.. is that true? and if so, how can i do that on PlatformIO(VSCODE)?
adding to that, I am wondering why Serial output is not working.. I set the serial ports correctly, but I cant use stdout or normal printf for serial... is it maybe due to the fact that I have another Serial Object Instance with the same pins on my main App?
7 months, 3 weeks ago.
By default, the error output (which is printf()) is re-targeted to Serial port, so if you connect the port well, you should be able to see the output from serial tool(like coolterm or teraterm). I believe it's regardless of the IDE or editor.
I may need the following information from you.
- Could you attach a simple code snippet for printing some logs you are using? And also the board your are using.
- The platform you are using
- How you connect the serial port
Please let me know if you have any questions!
- Desmond, team Mbed
To post an answer, please log in.