cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 DISCO Print to /dev/tty

botmail2422
Associate II
Posted on June 10, 2016 at 19:20

I have seen several people use the ''cat /dev/USB<some number>'' can get information from the board printed to a Linux terminal via USB cable. I have followed a few guides (http://www.carminenoviello.com/2015/03/02/how-to-use-stm32-nucleo-serial-port/) and it isn't working. The example provided in the linked tutorial compiles perfectly, but my device doesn't show in the /dev folder. What is going wrong? Is there an easier way to print a lot of data to a terminal (semihosting is too slow for what I need)? Does my device have to be transmitting serial comm to get recognized by the /dev folder?

#printf #!stm32-!vcp-!/dev #!cables
10 REPLIES 10
Posted on June 14, 2016 at 18:49

If I'm redirecting io stream to USART.... I'm going to need a USB to Serial cable where I only connect Tx and Rx pins, right? Like this one? http://goo.gl/NMondG or do I need a USART to USB like this one? http://goo.gl/XgNhTx

The USART's expect CMOS (3V) levels, not RS232 levels, so you second example is closer to what you want. I'd recommend ones based on the SiLabs CP2102 over ones based on Prolific chipsets.

Review the available USART pins in the manual. Seem to remember USART6 with PC6/PC7 being available.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..