2016-06-10 10:20 AM
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 #!cables2016-06-14 09:49 AM
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.