Warnings while using CRC drverfiles
Hello All,
We have designed a custom board with STM32F777IITx MCU on it, where i am using ST Micro's CubeMX with Atollic True Studio for developing the code.
Now I am also using a USB host peripheral and reading data from USB device now this data read from USB needs to checked for CRC.
I tried to build a basic code using ST Micro's CubeMX and Atollic True Studio which would calculate CRC of an array,
However when build the Code i am getting the given below warnings and also if i ignore these warnings my code gets stuck after it executes "HAL_CRC_Calculate" api.
de-referencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
de-referencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
de-referencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

The given above warnings also come when in blank code generated using Cube MX.
Also i referred the example code "CRC_Example" from the "STM32Cube_FW_F7_V1.9.0" Firmware package.(This example was for boards "STM32F769I_EVAL" and "STM32F769I-Discovery").
After referring example code from firmware package and incorporating the changes as per the example code in blank code yet i am getting same warnings.
