cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMx: new version 5.4.0 creates files sys.h / sys.c with unused function MX_SYS_Init() ???

Katzenberger.Michael
Associate III

Just updated STM32CubeMx from 5.3.0 to 5.4.0 and discovered the new files sys.h / sys.c after code generation.

What's the purpose of this file ? Obviously the containing function MX_SYS_Init() is never called ...

1 ACCEPTED SOLUTION

Accepted Solutions
Khouloud ZEMMELI
ST Employee

​Hello all,

@Katzenberger.Michael​  MX_SYS_Init(); should not be called , this's a CuebMX regression , and for this reason you @SStor​  find many errors when building code.

Thanks for your feedback, issue will be fixed in the next release.

Best regards,

Khouloud.

View solution in original post

3 REPLIES 3
SStor
Senior

This new file also causes problems on IAR compilers because a file with the same name "sys.c" exists already in LwIP package (IAR error: multiple tools write to the same file). I've excluded this unnecessary file "sys.c" for successful compiling.

Khouloud ZEMMELI
ST Employee

​Hello all,

@Katzenberger.Michael​  MX_SYS_Init(); should not be called , this's a CuebMX regression , and for this reason you @SStor​  find many errors when building code.

Thanks for your feedback, issue will be fixed in the next release.

Best regards,

Khouloud.

Hi, These two files and the empty MX_SYS_Init() function are back again when using STMCubeMX 6.10.0.  Another regression?

 

Regards,

Tony