STM32 ARM UART

An area to discuss ARM specific problems and examples

Moderator: Benj

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

I am not sure about the conclusion when using NUCLEO-F746ZG :
Is there a chance to connect the USB directly to a PC and get serial communication
or is a separate USB serial card needed ?

Best regards
BO
NUCLEO-F746ZG_UART.jpg
NUCLEO-F746ZG_UART.jpg (93.11 KiB) Viewed 16641 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: STM32 ARM UART

Post by stefan.erni »

Hi PicoPuls


I don't now....
But try the USART3
nucleo_pin.PNG
(6.69 KiB) Downloaded 6635 times

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: STM32 ARM UART

Post by Sean »

stefan.erni is correct. The Nucleo-F746ZG (and probably all other 144-pin Nucleo boards) use USART3, TX = PD8, RX = PD9 for the USB UART. No links or modifications are required.

I will edit my earlier post to include this information.

The information for the Nucleo boards seems to apply to all chip options of each pin count (32-, 64-, 144-pin).
Discovery boards not in the list will need to be checked individually for access to this feature.

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

Thanks,
It seems to be in the right direction,
but I can't confirm functionality.

I also don't understand what SB4....SB7 means
Attachments
NUCLEO-F746ZG_UART2.jpg
NUCLEO-F746ZG_UART2.jpg (65.78 KiB) Viewed 16636 times

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

Now I found that SB stands for solder bridge
Does that need to be fixed before it works ?
At least SB5, 6, 7 are here

NUCLEO-F746ZG_UART_sB.jpg
NUCLEO-F746ZG_UART_sB.jpg (28.61 KiB) Viewed 16636 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: STM32 ARM UART

Post by LeighM »

From table 9 above it looks like the default setting is USART3 connected to ST-LINK to support the virtual COM port,
which is what you want?

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

Yes, everything seems OK

Still, I can't serial-communicate with PC over USB
That's why I keep searching for something that might be missing


The solder bridges SB4 and SB7 should be removed, but if pin D8 D9 are not used,
they could probably stay

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

Could the test program be written differently ?
It should work - might just be some small detail missing.
Attachments
NUCLEO-F746ZG_UART3.jpg
NUCLEO-F746ZG_UART3.jpg (139.32 KiB) Viewed 16634 times

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: STM32 ARM UART

Post by Sean »

The attached program works on my F746ZG board. No hardware mods required.
F746Nuc144_VCP.fcfx
(6.52 KiB) Downloaded 634 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: STM32 ARM UART

Post by stefan.erni »

Hi PicoPuls

If You start on the another way, it's more comfortable. The Nucleo is sending nonstop and You can just change Parameter or what ever on the computer. You can also see if You receive character in a wrong Baudrate. When it once works switch to your program.
test-uart.PNG
(12.1 KiB) Downloaded 6629 times

PicoPuls
Posts: 111
Joined: Wed Mar 02, 2016 11:26 am
Has thanked: 43 times
Been thanked: 22 times

Re: STM32 ARM UART

Post by PicoPuls »

Thanks for the idea! Digilent-410-212

The Flowcode UART code has two connections TX, RX
and the Digilent unit has 4 connections TX,RX, RTS, CTS

Should RTS, CTS just be connected to GND ?
Attachments
Digilent-410-212.jpg
Digilent-410-212.jpg (137.39 KiB) Viewed 16603 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: STM32 ARM UART

Post by stefan.erni »

Hi Picopuls


Let it open. It was working on my board without connecting.

Post Reply