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

Re: STM32F4xx and UART7/8  Topic is solved

Postby becafuel » Thu Jan 25, 2018 10:09 pm

Hello Giovanni,

I understand your comment but the problem with Serial is that it is missing parameters like stop bits, word length, parity.


Best regards,
_______
Christophe

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: STM32F4xx and UART7/8

Postby steved » Thu Jan 25, 2018 10:29 pm

becafuel wrote:Hello Giovanni,

I understand your comment but the problem with Serial is that it is missing parameters like stop bits, word length, parity.


Best regards,
_______
Christophe

You set them in the initialisation structure - it has a field for control register CR1 of the UART:

Code: Select all

/**
 * Calculate value for CR1 based on data bits, parity, mode
 *
 * Note: Configured data bits include a bit for parity if enabled
 *
 * USART_CR1_M1 -   1 for 7-bit data (no parity); 0 otherwise
 * USART_CR1_M0 -   0 for 7-bit, 8-bit data (7,n or 8,n or 7,o or 7,e)
 *                  1 for 9-bit data (9,n or 8,o or 8,e)
 * USART_CR1_PCE    1 to enable parity
 * USART_CR1_PS     Parity selection - 0 for even, 1 for odd
 * USART_CR1_DEDT   Auto-RTS delay - set to maximum
 * USART_CR1_DEAT   Auto-RTS delay - set to maximum
 */

piwi1263
Posts: 11
Joined: Mon May 15, 2017 2:19 pm
Has thanked: 5 times
Been thanked: 2 times

Re: STM32F4xx and UART7/8

Postby piwi1263 » Thu Mar 08, 2018 10:37 pm

Hi All,

are you accepting updates on the USARTv1 LLD stuff ?

I've got an update available for it that adds support for UART7 and UART8.

I've attached a zip containing the changed files for hal_uart_lld.c hal_uart_lld.h

They are in <whatever-root>\ChibiOS\os\hal\ports\STM32\LLD\USARTv1

Kind regards,

Peter
Attachments
USARTv1.zip
(8.28 KiB) Downloaded 201 times

josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Re: STM32F4xx and UART7/8

Postby josesimoes » Mon Nov 19, 2018 3:05 pm

Hi,

Any chance you can look into adding @piwi1263 contribution to add support for UART7/8 in USARTv1?

Thanks in advance!

gligorov
Posts: 6
Joined: Mon Nov 19, 2018 4:44 pm
Has thanked: 3 times

Re: STM32F4xx and UART7/8

Postby gligorov » Sun Dec 02, 2018 4:47 pm

Hi,

Any update on adding support (or the submitted solution from piwi1263) to fix Uart 7/8 support for STM32F4?

We have a board based of STM32F469BIT for commercial product and would need this, just wondering if this is looked at?

Thanks.

Zan

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

Re: STM32F4xx and UART7/8

Postby Giovanni » Sun Dec 02, 2018 5:39 pm

Hi,

I merged it (to be tested) to trunk.

Giovanni

gligorov
Posts: 6
Joined: Mon Nov 19, 2018 4:44 pm
Has thanked: 3 times

Re: STM32F4xx and UART7/8

Postby gligorov » Sun Dec 02, 2018 5:47 pm

Great, thanks.

Just to clarify that STMF4 series starting from STM32F42x onward do have the Uart 7/8.


Zan


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 5 guests