0
\$\begingroup\$

I have a STM32F429 Discovery but not have a TTL to USB converter. I wants transmit and receive data (String) with UART of computer and STM32. Have a way to implements this on the board, using HAL drivers? Or other way without a board with TTL to USB converter? I searched for tutorials, but I didn't find a good and comprensible.

\$\endgroup\$

closed as too broad by Matt Young, PeterJ, Voltage Spike, Dmitry Grigoryev, Chetan Bhargava Aug 17 '17 at 20:02

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ I suspect/assume you're needing/wanting to implement a virtual com port on the USB? If so, you do not need anything other than a USB cable to the PC and to set up the micro with the requisite software. Much as I dislike it, the ST Cube will help you set this up using the HAL you mention. \$\endgroup\$ – DiBosco Aug 15 '17 at 7:36
1
\$\begingroup\$

There are a few options to communicate with a PC using serial, but not necessarily over UART.

  1. There is a minimal chance that your PC has an RS-232 serial port. But as it is an RS-232 port you cannot connect the MCU's UART directly. You will have to use a MAX232 chip for example.

  2. Now, ut would probably be easier to get a TTL-to-USB converter then building one converter for RS-232.

  3. The third option would be to go with USB on the MCU at the first place as @DiBosco suggested already. Using the STM32F429 Discovery board the required hardware is already at hand, the micro USB connector can be used for custom USB applications.

    To setup the USB on the STM32 using STM32CubeMX you can follow this detailed description from Stack Overflow.

    Once it is done, your MCU will enumerate as a virtual COM port on your PC when plugged in.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.