Page 2 of 2
Re: STM32F4xx and UART7/8
Posted: Thu Jan 25, 2018 10:09 pm
by becafuel
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
Re: STM32F4xx and UART7/8
Posted: Thu Jan 25, 2018 10:29 pm
by steved
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
*/
Re: STM32F4xx and UART7/8
Posted: Thu Mar 08, 2018 10:37 pm
by piwi1263
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
Re: STM32F4xx and UART7/8
Posted: Mon Nov 19, 2018 3:05 pm
by josesimoes
Hi,
Any chance you can look into adding @piwi1263 contribution to add support for UART7/8 in USARTv1?
Thanks in advance!
Re: STM32F4xx and UART7/8
Posted: Sun Dec 02, 2018 4:47 pm
by gligorov
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
Re: STM32F4xx and UART7/8
Posted: Sun Dec 02, 2018 5:39 pm
by Giovanni
Hi,
I merged it (to be tested) to trunk.
Giovanni
Re: STM32F4xx and UART7/8
Posted: Sun Dec 02, 2018 5:47 pm
by gligorov
Great, thanks.
Just to clarify that STMF4 series starting from STM32F42x onward do have the Uart 7/8.
Zan