stm32f103rb nucleo usart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-21 6:44 PM
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- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 6:40 AM
Hi
Lee.Jason.017
,I recommend you to have look to
: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 theUSART1
on the HyperTerminal.-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 9:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 9:55 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 11:19 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 11:26 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 5:30 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 5:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-22 11:11 PM
I tried 'remap' of usart1, it now works fine
