cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103rb nucleo usart

J Lee
Associate III
Posted on May 22, 2017 at 03:44

Hi, I just want to know if usart1 on stm32f103rb nucleo board works or not? If yes, is that using PA9 PA10? If yes, why is that not showing on the datasheet?

If usart1 doesn't work on the board, which usart works on the board? Is that usart2? if yes, do I have to change the solder bridge?

#stm32f103-usart
8 REPLIES 8
Nesrine M_O
Lead II
Posted on May 22, 2017 at 15:40

Hi

Lee.Jason.017

,

I recommend you to have look to

http://www.st.com/content/ccc/resource/technical/document/user_manual/98/2e/fa/4b/e0/82/43/b7/DM001058pdf/files/DM001058pdf/jcr:content/translations/en.DM001058pdf

:

Board: STM32F103RB-NucleoUSART1:

Tx Pin: PA.09 (Pin 21 in CN10)

Rx Pin: PA.10 (Pin 33 in CN10)

Also have a look to the USART example under the STM32F1 HAL package :

STM32Cube_FW_F1_V1.4.0\Projects\STM32F103RB-Nucleo\Examples\UART\UART_Printf

This example shows how to reroute the C library printf function to the UART. It outputs a message sent by the

USART1

on the HyperTerminal.

-Nesrine-

Posted on May 22, 2017 at 16:10

thank you for your help, if u connect ur board to ur PC with a USB-TTL module, can u find the device in ur PC's device manager? For me, my COM3 is not recogonized by my PC, I don't know if the driver has been installed correctly

Posted on May 22, 2017 at 16:55

Whole English words please..

If you connect via the ST-LINK USB connection you should get a VCP. As I recall that would use USART2 via PA2/PA3

If you connect via your own USB-TTL adapter you'll need to get the appropriate driver for that, and confirm you can see it in Device Manager, and what COM port it comes in as. This would be something you'd be responsible for.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 22, 2017 at 18:19

What I am doing now is using a bluetooth shield with this board, the bluetooth module is essentially a UART when connected to STM32. I tried connecting it to usart1 using PA9&10, but it didn't work....So I wanna test this board's(STM32f103rb nucleo) usart1.

It seems that the board's user manual shows PA9 & 10 have no function? But it doesn't make sense since all chips in STM32f103 series have usart1 at  PA9&10

Posted on May 22, 2017 at 18:26

PA9 and PA10 are exposed on the Shield headers (pins D8 and D3), they should be viable unless your shield interferes with them.

Perhaps you have issues with your software/configuration? Can't see from here.

Perhaps you have TX and RX mixed up? The STM32 TX would need to go to the USB-CMOS Serial RX pin. Can't see the wiring configuration from here.

Set your code to send 'U' character in a loop and scope PA9 to confirm you can see the signal, and that the bit rate timing is correct.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 23, 2017 at 00:30

Hi,thank you for ur help, I checked the electrical schematic of nucleo, and I found that PA9 serves as st-link pin as well, and PA10 serves as T SWO, is that the reason?

(I can't upload image to show you)

Posted on May 23, 2017 at 00:34

So I am trying to remap the uasrt1 from PA9&10 to PB6&7, I will do and I don't know if it works

Posted on May 23, 2017 at 06:11

I tried 'remap' of usart1, it now works fine