Skip to main content
OGhis
Senior
August 24, 2019
Question

BUG: CubeMX 5.3.0 doesn't generate CRC.c for STM32G474

  • August 24, 2019
  • 2 replies
  • 733 views

The compiler cannot find the function MX_CRC_Init()

The reason is that STM32CubeMX 5.3.0 doesn't generate CRC.c for STM32G474 when the CRC module is enabled.

The CRC.h header is correct generated.

This happens only in the STM32CubeIDE with the integrated STM32CubeMX 5.3.0

This topic has been closed for replies.

2 replies

Khouloud ZEMMELI
ST Employee
September 13, 2019

​Hello @OGhis​ ,

could you please share your .ioc ?

Thanks,

Khouloud.

Khouloud ZEMMELI
ST Employee
September 13, 2019

​I tried to reproduce your issue , with G471CETx and crc enabled, toolchain : CubeIDE and I have no problem in the project generated .

Well, the MX_CRC_Init() was generated under main.c, but if you want to obtain the crc.c in the project generated by CubeMX you need to Select " Generate peripheral initialization as a pain of '.c/.h' files per peripheral" under Project Manager- Code Generator.

then ,If your problem still exist, please send me your ioc file.

Best Regards,

Khouloud.