Skip to main content
Associate III
Nov 25, 2026 11:50 AM UTC
Question

Problem SMTCubeMX version 6.19.0

Hello everyone,
After migrating an STM32CubeMX project created with a previous version 6.18.1 to STM32CubeMX 6.19.0 and regenerating the code, the generated app_freertos.h file contains an unexpected #n directive after the include statements. This causes a compilation error.
I will attach a screenshot showing the affected lines. Could you please investigate whether this is a code-generation issue and advise on a fix or workaround?
 


Thank you in advance.

 

Alberto

1 reply

ST Technical Moderator
Nov 25, 2026 12:20 PM UTC

Hello ​@Fin95 

Let me thank you for posting.

For more investigation, could you please provide your Ioc.File.

Thanks.

Mahmoud

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.