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

Postby becafuel » Mon Jan 22, 2018 6:57 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4xx and UART7/8

Postby Giovanni » Mon Jan 22, 2018 7:04 pm

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

Postby becafuel » Mon Jan 22, 2018 7:12 pm

Yes, there are present for example on STM32F427VGT, STM32F429IGH, STM32F429ZI, to name a few.

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4xx and UART7/8

Postby Giovanni » Mon Jan 22, 2018 7:14 pm

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

Postby becafuel » Mon Jan 22, 2018 7:23 pm

Oh, thank you for the reply.

I will then wait for such update.


Best regards,
________
Christophe

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4xx and UART7/8

Postby Giovanni » Tue Jan 23, 2018 9:31 am

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

Postby becafuel » Tue Jan 23, 2018 10:02 am

Hello Giovanni,

Image

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4xx and UART7/8

Postby Giovanni » Tue Jan 23, 2018 10:36 am

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

Postby becafuel » Tue Jan 23, 2018 10:47 am

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4xx and UART7/8

Postby Giovanni » Tue Jan 23, 2018 10:51 am

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


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 42 guests