Skip to main content
Katzenberger.Michael
Associate III
October 16, 2019
Solved

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

  • October 16, 2019
  • 2 replies
  • 1112 views

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 ...

Best answer by Khouloud ZEMMELI

​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.

2 replies

Senior
October 16, 2019

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
Khouloud ZEMMELIBest answer
ST Employee
October 17, 2019

​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.

Visitor II
October 10, 2024

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

 

Regards,

Tony