2017-01-24 02:54 AM
Hi all
I'd like to use UART2 to receive data, but It seemed to be failed, only could transmitted data.
I used the same codes in UART1, everything is fine,
So I think HW and SW parts are fine except UART2.
I had not connect SB62 & SB63 to enable PA3 & PA2, and used the CN3 of the st-link part for my project.
May I miss something? Or I should connect
SB62 & SB63 to use PA3 & PA2 pins?
If anyone could tell me how to fix it?
Thank you in advance.
2017-01-24 03:49 AM
Hello
I have moved your question to the
‌ where someone should be able to assist you.Thanks
Oli
2017-01-24 05:40 AM
Some nucleo boards connect USART2 to the STLINK JTAG programmer on the board. It's used as a serial port through the STLINK USB. Check your schematic; to use it you may need to remove some jumpers. For USB it's fixed at 9600, 8 bit, no parity, 1 stop, and should appear as a COM port on a host PC.
Jack Peacock
2017-01-25 12:50 AM
Hi,
Maybe some information available in UM1724 (see
http://www.st.com/resource/en/user_manual/dm00105823.pdf
).Please refer to chapter 6.9, especially this area :
SB62/SB63 OFF removes connection between PA2/PA3 and D0/D1 on CN9 (or CN10).
Could you confirm your setup is as follows ?- SB62-SB63 OFF, SB13-SB14 ON so that PA2/PA3 of L476 are connected to STLINK,
- PC connected to USART2 using Virtual com port, through ST Link
If so, i would also expect it to work.
regards
Guenael