cancel
Showing results for 
Search instead for 
Did you mean: 

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

OGhis
Associate III

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

2 REPLIES 2
Khouloud ZEMMELI
ST Employee

​Hello @OGhis​ ,

could you please share your .ioc ?

Thanks,

Khouloud.

Khouloud ZEMMELI
ST Employee

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