Apologies all, for the dumb question.
I have been happily using printf for both my nucleo boards using mbed. Then, due to gross stupidity on my part I deleted the programs that had the printf command in them. Now I can’t get it to work again. All I can remember is that, after a lot of searching forums, manuals, spec sheets and other assorted documentation, I found I had to add two lines to the beginning of the program. One of them may have been a #include, but I’m not sure. The other was, I think, of the form “Serial something” or “Serial something(something)”, I honestly can’t remember more than that.
I have found, in my new round of searching, many references to Serial pc(USBTX, USBRX); but I am almost certain that wasn’t what I found last time. Anyway I tried it and it didn’t work, I still don’t see printf output on the serial monitor in pio. Although it does compile, so presumably the output is going somewhere.
Can somebody please point me in the right direction?
Thanks,
Ian