Skip to main content
JPabl.1
Associate III
January 27, 2022
Solved

USART not working on STM32L152C Discovery board

  • January 27, 2022
  • 2 replies
  • 894 views

Hello ST community!

I'm working with the STM32L152C Discovery board and would like to create a simple USART example. 

I have developed USART drivers in the past, but this time they are not working with the disco board. It is possible that it has to do with the fact that all the USART pins are connected to the LCD?

I also tried using the USART through the ST-LINK V2, but my PC is not recognizing the board, and I already installed the drivers and did the firmware update, but no idea what's happening.

I'm able to flash the board with a simple LED program, so I know it works :)

Any help would be extremely appreciated, thanks a lot in advance!

This topic has been closed for replies.
Best answer by Tesla DeLorean

You'd want pins that aren't conflicted.

This is an old board, with an ST-LINK/V2 not V2-1 so probably doesn't have a VCP via the ST-LINK

Perhaps look for PA2/PA3 USART2, or PA9/PA10 USART1, or dig through the documentation.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
January 27, 2022

You'd want pins that aren't conflicted.

This is an old board, with an ST-LINK/V2 not V2-1 so probably doesn't have a VCP via the ST-LINK

Perhaps look for PA2/PA3 USART2, or PA9/PA10 USART1, or dig through the documentation.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
JPabl.1
JPabl.1Author
Associate III
January 27, 2022

Hello Tesla DeLorean, thanks a lot for your quick reply.

I changed to USART2 with PA2/PA3 and it worked flawlessly :)

Thanks!