Skip to main content
nicolas
Senior II
May 22, 2026
Question

Wrong comment in generated code

  • May 22, 2026
  • 1 reply
  • 74 views

I'm using STM32CubeMX 6.17.0 with NUCLEO-U575ZI-Q, it generated the following code:

/* Initialize COM1 port (115200, 8 bits (7-bit data + 1 stop bit), no parity */
BspCOMInit.BaudRate = 115200;
BspCOMInit.WordLength = COM_WORDLENGTH_8B;
BspCOMInit.StopBits = COM_STOPBITS_1;
BspCOMInit.Parity = COM_PARITY_NONE;
BspCOMInit.HwFlowCtl = COM_HWCONTROL_NONE;

The comment is wrong, the UART has 8 bits of data instead of 7 bits.

1 reply

Ghofrane GSOURI
Technical Moderator
May 22, 2026

Hello @nicolas 

Thank you for your contribution.

The issue has been escalated to the development team for resolution under internal ticket ID #0062850.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.