2017-03-25 01:27 AM
Hello everyone. I am using STM32F401RE Nucleo Board. I want to communicate with PC through USB CDC Virtual COM Port. I was following an instruction for STM32F4 Discovery and then I realized that my Nucleo Board didn't have a second micro USB port like his Discovery Board. Is it possible for me to make my own second USB port like Discovery Board on my Nucleo Board ? What should I do ?
Thank you very much.
Solved! Go to Solution.
2017-03-25 09:37 AM
There is no guarantee the differential signal quality will be good enough. (it's called the eye diagram)
PCB layout is done carefully for differential signals such as USB, Display Port, DSI, LVDS, etc...
If lucky it may work, if not use UART pin and RS232 to USB cable.
Or simply buy a Bluetooth 5 USD module HC-05/06 to create a wireless virtual com port which will work on PC and Android phones.
2017-03-25 07:31 AM
The built-in ST Link function may have a COM port for the user connected to the target STM32 USART (1?).
This avoids purchasing a RS232-USB cable adapter. Adding USB cable to the nucleo is no guarantee to work as USB is a differential pair. Impedence matching to solder/plug a USB cable is risky.
2017-03-25 07:43 AM
Centauris.Alpha
So you mean if I add a USB Port myself (VCC->3.3V,D+ -> PA12, D- -> PA11, GND -> GND), the communication through USB Port will be unstable ?2017-03-25 09:37 AM
There is no guarantee the differential signal quality will be good enough. (it's called the eye diagram)
PCB layout is done carefully for differential signals such as USB, Display Port, DSI, LVDS, etc...
If lucky it may work, if not use UART pin and RS232 to USB cable.
Or simply buy a Bluetooth 5 USD module HC-05/06 to create a wireless virtual com port which will work on PC and Android phones.
2017-03-25 09:51 AM
Thank you very much. Your answer just explained why I can't get any data through USB Virtual COM Port when I try wiring to make it just like Discovery Board. I think I am going to give up that idea.
2017-03-25 06:41 PM
Could you get the data to the PC via the NUCLEO's VCP? ie USART2 PA2/PA3 on the F401
2017-03-26 12:46 AM
I still can get data to the PC using UART. The communication functions normally.