4
\$\begingroup\$

I am using STM32L1 Series Discovery board and want to do uART communication via same UART port that is Used for Embedded ST Link V2

enter image description here .

Embedded ST Link uses USART1 of STM32L100CT6 and Mini USB is connected to my PC. Refer following fig.

PA9 Pin  as USART1_Tx of STM31L100CT6
PA10 Pin as USART1_Rx of STM31L100CT6

I also connected JP1 that is provided on the board so now main problem with this is that I didn't find COM port !!!

Is it possible to use ST Link USB for UART Communication ?

\$\endgroup\$
  • \$\begingroup\$ "So is it possible to use ST Link USB for UART Communication ?" - Nope. \$\endgroup\$ – JimmyB Jul 31 '17 at 9:02
  • 1
    \$\begingroup\$ The STM boards that support the arm mbed system do just this so it is in theory possible with the correct drivers installed on the PC. Whether the st-link firmware on that specific board supports it or not is another matter. \$\endgroup\$ – Andrew Jul 31 '17 at 10:36
1
\$\begingroup\$

No, it isn't possible (without a hardware modification, and custom ST-Link firmware). PA9 and PA10 are connected to the LCD display and the side headers, but not connected in any way to the onboard ST-Link.

You can however do that with a Nucleo board, where PA2 and PA3 (USART2) of the target controller are connected to the onboard USB controller, but of course it doesn't have that nice LCD display.

\$\endgroup\$
1
\$\begingroup\$

If what you really need is a "serial terminal" you can convert the ST link to J-Link and use Segger RTT. It works like a serial terminal, but over JTAG.

\$\endgroup\$
  • \$\begingroup\$ Just please vote and/or accept answer. \$\endgroup\$ – filo Jul 31 '17 at 11:11
1
\$\begingroup\$

It needs stllinl 2.1 to work. And it needs the user tx rx pins being routed out.

More details here. https://dannyelectronics.wordpress.com/2016/05/01/uart-debugging-over-st-link-v2-1/

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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