9 years, 9 months ago.

What is the source destination of this pc.printf

This seems to run, but I cant get hold of the messages.

I am used to Arduinos with a 'usb console', is this similar, and if so how-to 'console', I would like to send messages just like in Arduino for display (debugging)

I am also not sure what the destination of box standard printf is ? Thanks.

1 Answer

9 years, 9 months ago.

Similar to Arduino's it sends it over a virtual COM port, you can use any terminal program to receive it, see: https://mbed.org/handbook/Terminals. Pretty sure around here the majority uses TeraTerm.

Accepted Answer

The ST Nucleo however does have some issues, I only get a virtual terminal once like in four tries, then I have to unplug and re-insert the USB cable, this was also only on USB2 compatible ports. It does not work at all on my laptop USB3 compatible port. This was the reason why I was a struggle with the printf. I did however updated the windows7 driver and updated the firmware on the Nucleo F030R8!

posted by Gerrie de Jager 17 Jul 2014

On my USB3 ports it works fine. Granted it does sometimes have some issues getting the com port to show up (only have it for short time now). However on the other hand the auto reset on upload, and that the serial connection stays intact, is really neat imo. Something the other targets also need (autoreset is easy of course to add, and I have seen that at least one of the newer targets has it in CMSIS DAP to not reset the serial stack).

posted by Erik - 17 Jul 2014