2022-01-27 10:53 AM
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!
Solved! Go to Solution.
2022-01-27 12:30 PM
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.
2022-01-27 12:30 PM
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.
2022-01-27 12:40 PM
Hello Tesla DeLorean, thanks a lot for your quick reply.
I changed to USART2 with PA2/PA3 and it worked flawlessly :)
Thanks!