cancel
Showing results for 
Search instead for 
Did you mean: 

USART not working on STM32L152C Discovery board

JPabl.1
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
JPabl.1
Associate

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

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

Thanks!