Skip to main content
Visitor II
January 17, 2026
Solved

SmartCard mode Parity is not initialized

  • January 17, 2026
  • 2 replies
  • 213 views

When choosing SmartCard mode for USART, parameter Parity is automatically set to Even. However generated code in usart.c, does not has:

hsmartcard1.Init.Parity = SMARTCARD_PARITY_EVEN;

Only when I manually reselect that in GUI, the parity will be set in the generated code.

I am using Nucleo-G0B1RE.

Best answer by Ghofrane GSOURI

Hello ​@eSelix 

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

Download STM32CubeMX6.18.0 from  here 

THX

Ghofrane

2 replies

Ghofrane GSOURI
ST Technical Moderator
January 19, 2026

Hello @eSelix 

Thank you for your valuable contribution.

Issue has been escalated to dev team for resolution under internal ticket ID 225403 

I will keep you posted with updates 

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
July 1, 2026

Hello ​@eSelix 

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

Download STM32CubeMX6.18.0 from  here 

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.