STM32F4xx and UART7/8 Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
becafuel
Posts: 15
Joined: Sun Feb 19, 2017 1:45 pm

STM32F4xx and UART7/8

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4xx and UART7/8

Post by Giovanni »

Are those UARTs present of the F4? which one?

Giovanni
becafuel
Posts: 15
Joined: Sun Feb 19, 2017 1:45 pm

Re: STM32F4xx and UART7/8

Post by becafuel »

Yes, there are present for example on STM32F427VGT, STM32F429IGH, STM32F429ZI, to name a few.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4xx and UART7/8

Post by Giovanni »

This will require an update of USARTv1, you cannot use USARTv2 with the wrong parts.

Giovanni
becafuel
Posts: 15
Joined: Sun Feb 19, 2017 1:45 pm

Re: STM32F4xx and UART7/8

Post by becafuel »

Oh, thank you for the reply.

I will then wait for such update.


Best regards,
________
Christophe
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4xx and UART7/8

Post by Giovanni »

Hi,

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

Giovanni
becafuel
Posts: 15
Joined: Sun Feb 19, 2017 1:45 pm

Re: STM32F4xx and UART7/8

Post by becafuel »

Hello Giovanni,

Image
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4xx and UART7/8

Post by Giovanni »

Are you using the UART driver or the Serial driver? those UARTs are supported in the serial driver.

Giovanni
becafuel
Posts: 15
Joined: Sun Feb 19, 2017 1:45 pm

Re: STM32F4xx and UART7/8

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4xx and UART7/8

Post 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
Post Reply