Skip to content

7-bit data length with (even/odd) parity is configured as 8-bit in UART #56003

@RadhikaMaheshwari-eaton

Description

Hello people,

I have an observation regarding UART while using STM32H743ZI nucleo board with Zephyr3.2.0 and Zephyr SDK 0.15.2:
Case 1- When I am configuring 7-bit data length with even/odd parity it is configured as 8-bit. We are getting the correct parity, but 7-bit is not getting configured.
Case 2- While setting up 7-bit with none parity it is considered as 7-bit but not getting the correct response (garbage value).

I think it is related to the function uart_stm32_cfg2ll_databits in the file uart_stm32.c

Note: baudrate=115200 and usart3 peripheral
What I can deduct from this situation is, if we send 0x55 the uart data register gets the correct value but in response we get 0 byte in return. The CR1 (control register) have values for word length M1 (bit 28) & M2 (bit 12) :
Case 1- CR1->M[1:0] = '10' 1 start bit, 7 Data bits, n Stop bit
image

Case 2- CR1->M[1:0] = '00' 1 start bit, 8 Data bits, n Stop bit
image

Would like to know your thoughts on this.

Metadata

Metadata

Assignees

Labels

Waiting for responseWaiting for author's responsearea: UARTUniversal Asynchronous Receiver-TransmitterbugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions