cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling CRC calculation for SPI does not #define USE_SPI_CRC in STM32CubeIDE in STM32H753BIT project

MNagl.1
Associate II

All code paths depending on USE_SPI_CRC thus stay disabled and CRC checking is silently deactivated. There seems to be no place where USE_SPI_CRC can be defined without being deleted by the next automatic code generation. Is there a workaround or did I miss something?

3 REPLIES 3
TDK
Guru

It should be defined in stm32h7xx_hal_conf.h file, but it's not. It's there for the F4 family.

Workaround: Add USE_SPI_CRC=1 to the preprocessor definitions for your project.

Properties -> C/C++ Build -> Setttings -> Tool Settings -> MCU GCC Compiler -> Preprocessor

If you feel a post has answered your question, please click "Accept as Solution".
Khouloud ZEMMELI
ST Employee

​Hello @MNagl.1​ ,

Thanks for the feedback, this will be internally checked.

Regards,

Khouloud

Khouloud ZEMMELI
ST Employee

​@MNagl.1​  @TDK​ 

Issue fixed, the fix will be available for the next CubeMX release

Best Regards,

Khouloud