Skip to main content
nicolas
Senior II
Solved

Wrong comment in generated code

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.

Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator

Hello ​@nicolas 

This issue has been fixed in the latest version of STM32CubeMX 6.19.0

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.

2 replies

Ghofrane GSOURI
ST Technical Moderator

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.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator

Hello ​@nicolas 

This issue has been fixed in the latest version of STM32CubeMX 6.19.0

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.