2012-07-20 06:02 AM
Hello, I need an example on STM32 of how to use printf to format and output data via USB CDC communication (VCP demo) . Does any one had do it before ? Thanks
2012-07-20 07:39 AM
If you are managing the buffers try using sprintf().
Keil has a simple method of retargeting the standard output, but it operates at a character level which is woefully inefficient.2012-07-20 03:12 PM
''I need an example on STM32 of how to use printf to format and output data via USB''
Your toolset documentation will tell you how to provide support for printf to output to arbitrary devices - printf neither knows nor cares what the physical interface is.