Skip to main content
MNagl.1
Associate
May 12, 2020
Question

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

  • May 12, 2020
  • 3 replies
  • 974 views

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?

This topic has been closed for replies.

3 replies

TDK
May 13, 2020

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
May 14, 2020

​Hello @MNagl.1​ ,

Thanks for the feedback, this will be internally checked.

Regards,

Khouloud

Khouloud ZEMMELI
ST Employee
May 22, 2020

​@MNagl.1​  @TDK​ 

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

Best Regards,

Khouloud