cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476G-DISCO USART NOT WORKING?!

OGaie
Associate III

I'm using an stm32l476G-DISCO and i want to transmit a message using the usart, 

the code compiled with no error using the CubeMX but the terminal is not showing anything.

i configured pin P5 as TX_USART2 and P6 as RX_USART2

is it a usb driver problem? or should I use a PL2303 USB to serial ?

1 ACCEPTED SOLUTION

Accepted Solutions
OGaie
Associate III

Problem solved i had a problem on the Solder-bridges SB15/SB17 ... Thank you

View solution in original post

4 REPLIES 4

PD5/PD6 should be usable. Will present as a virtual COM port on the ST-LINK

Solder-bridges SB13 and SB16 need to be made, and SB15/SB17 OFF

https://www.st.com/content/ccc/resource/technical/document/user_manual/d1/84/86/4b/08/82/47/91/DM00172179.pdf/files/DM00172179.pdf/jcr:content/translations/en.DM00172179.pdf

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
OGaie
Associate III

Solder-bridges are something internal already exists , it used to be working the usart , now its not

Do you have an oscilloscope? Can you output a stream of 'U' characters?

Erase part and step with the debugger.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
OGaie
Associate III

Problem solved i had a problem on the Solder-bridges SB15/SB17 ... Thank you