Enabling CRC calculation for SPI does not #define USE_SPI_CRC in STM32CubeIDE in STM32H753BIT project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-12 3:43 AM
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?
- Labels:
-
SPI
-
STM32CubeIDE
-
STM32CubeMX
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-12 8:51 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-14 1:49 AM
​Hello @MNagl.1​ ,
Thanks for the feedback, this will be internally checked.
Regards,
Khouloud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-22 6:07 AM
​@MNagl.1​ @TDK​
Issue fixed, the fix will be available for the next CubeMX release
Best Regards,
Khouloud
