I am trying to use CRC component of STM32F4.
Procedure I followed:-
For STM32F413, Selected uart2,uart6 and CRC from stm32Cubemx.
I am using below function to calculate CRC value.
HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer, uint32_t BufferLength);
where Data = "START"
Lenght = 5;
It is giving me some CRC computed value ...0x200004f0.
If I create other project with same above setting and do the the same procedure, I am getting different CRC computed value even if I pass the same data.
The CRC computed value coming for data "START" should be same in both the project if I am not wrong.
Please provide your inputs if I am doing something wrong.
Can I directly use HAL_CRC_Calculate() function in my project or not ?
You're passing a 32-bit pointer, I'd assume the length is in words, not bytes. Check function usage expectations.
Retrieving data ...