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
STM32F4xx and UART7/8 Topic is solved
Re: STM32F4xx and UART7/8
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
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
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
-
- Posts: 91
- Joined: Sat Feb 18, 2017 11:50 am
- Has thanked: 43 times
- Been thanked: 23 times
Re: STM32F4xx and UART7/8
Hi,
Any chance you can look into adding @piwi1263 contribution to add support for UART7/8 in USARTv1?
Thanks in advance!
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
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
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
- 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
Great, thanks.
Just to clarify that STMF4 series starting from STM32F42x onward do have the Uart 7/8.
Zan
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