Skip to main content
Visitor II
March 15, 2024
Question

Nucleo-64 7 bit serial

  • March 15, 2024
  • 1 reply
  • 960 views

I am using the Nucleo-64 STM32L476 evaluation board and am connecting via the (USB) debug port. This connects to USART2. However, when I send 7 bit serial (from the PC) it appears to arrive as 8 bit serial  (USART2). Does the USB to Serial converter in the debug port only support 8 bit serial?

    This topic has been closed for replies.

    1 reply

    Graduate II
    March 15, 2024

    Good question, not sure

    Show the configuration of ALL the uarts/serial ports in the chain here.

    You're likely going to get the data as 8-bit bytes, if you've enabled parity that's included in the data-bit budget on STM32, and you'll need to strip it from the high-order bit of bytes in received data packets.

    The output UART on the ST-LINK's STM32F1 should be a very close proxy of the settings you made on the PC. On the L4, it will be whatever you select there.

    Why is 7-bit important? Forty years in, this seems atypical..

    Super User
    March 15, 2024

    @Tesla DeLorean wrote:

    Good question, not sure


    Indeed - it's not mentioned in the User Manual.

     


    @Tesla DeLorean wrote:

    Why is 7-bit important? Forty years in, this seems atypical..


    +1

    @DOrch.1 if it is important, maybe test with separate USB-to-UART ?