Page 1 of 2

STM32F4xx and UART7/8

Posted: Mon Jan 22, 2018 6:57 pm
by becafuel
Hello,

is there a way to use UART7 and UART8 on STM32F4xx MCUs ?
So far, only uartv2 offer such support but it does not compile for F4 :(


Best regards,
__________
Christophe

Re: STM32F4xx and UART7/8

Posted: Mon Jan 22, 2018 7:04 pm
by Giovanni
Are those UARTs present of the F4? which one?

Giovanni

Re: STM32F4xx and UART7/8

Posted: Mon Jan 22, 2018 7:12 pm
by becafuel
Yes, there are present for example on STM32F427VGT, STM32F429IGH, STM32F429ZI, to name a few.

Re: STM32F4xx and UART7/8

Posted: Mon Jan 22, 2018 7:14 pm
by Giovanni
This will require an update of USARTv1, you cannot use USARTv2 with the wrong parts.

Giovanni

Re: STM32F4xx and UART7/8

Posted: Mon Jan 22, 2018 7:23 pm
by becafuel
Oh, thank you for the reply.

I will then wait for such update.


Best regards,
________
Christophe

Re: STM32F4xx and UART7/8

Posted: Tue Jan 23, 2018 9:31 am
by Giovanni
Hi,

I double checked, UART 7 and 8 are supported in latest version. What version are you using?

Giovanni

Re: STM32F4xx and UART7/8

Posted: Tue Jan 23, 2018 10:02 am
by becafuel
Hello Giovanni,

Image

Re: STM32F4xx and UART7/8

Posted: Tue Jan 23, 2018 10:36 am
by Giovanni
Are you using the UART driver or the Serial driver? those UARTs are supported in the serial driver.

Giovanni

Re: STM32F4xx and UART7/8

Posted: Tue Jan 23, 2018 10:47 am
by becafuel
I am using UART driver, here. Serial driver is used to create a connection to a PC (via USB).

Are you saying that Serial can be used to drive external peripherals ? If so, what are the differences between Serial and UART ? And when should I use one or the other ?
You may have lost me, here.

Re: STM32F4xx and UART7/8

Posted: Tue Jan 23, 2018 10:51 am
by Giovanni
Hi,

Serial is buffered and uses circular queues without DMAs, UART is unbuffered and uses DMA for transfers.

Serial is best used for general terminal-like I/O, UART is best for fixed lenght message-based protocols. In general Serial is much more commonly used.

Giovanni