Skip to main content
DOrch.1
Associate II
March 15, 2024
Question

Nucleo-64 7 bit serial

  • March 15, 2024
  • 3 replies
  • 976 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.

3 replies

Tesla DeLorean
Guru
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..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
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 ?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.