Skip to main content
Associate II
June 18, 2025
Solved

C071: CubeMX is generating invalid code

  • June 18, 2025
  • 3 replies
  • 328 views

When using USART2 on the C071, CubeMX is generating calls to functions like `HAL_UARTEx_SetTxFifoThreshold` but the USART2 on C071 is a basic UART without FIFO.

Best answer by Ghofrane GSOURI

Hello @G565

Your contribution is much appreciated.

Issue has been raised to development team for fix.

Internal ticket number: 212488 

I will keep you posted with updates.

THX

Ghofrane 

3 replies

Ghofrane GSOURI
Technical Moderator
June 18, 2025

Hello @G5658 

First let me thank you for posting.

I'm currently investigating this issue issue .

I 'will get back to you asap.

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
Technical Moderator
June 18, 2025

Hello @G565

Your contribution is much appreciated.

Issue has been raised to development team for fix.

Internal ticket number: 212488 

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.
Associate II
September 26, 2025

Hi, is there an estimate for when this might be fixed?  6.15 was released in July and still had the problem.

Is there a workaround other than hacking the generated code?  Maybe using ll_ instead of HAL?  The ll_ code doesn't have the check and just writes to the CR3 register bits, even though it has no effect.

Regards,

Mike