Skip to main content
Trinu
Associate II
July 30, 2021
Solved

How to see the return value of the CRC_CalcCRC();

  • July 30, 2021
  • 2 replies
  • 810 views

hi here I am configure the CRC register of STM32f469IITx

I am using the function CRC_CalcCRC(); to generate the crc for 32-bit data.

i am not getting the crc please any one help me.

uint32_t data=0xAAAAAAAA;

uint32_t crcvalue=0x00000000;

how i am using crcvalue = CRC_CalcCRC(data);

crcvalue = ? (crcvalue is giving null only)

This topic has been closed for replies.
Best answer by waclawek.jan

Where comes CRC_CalcCRC() from?

Single-step in debugger to find out what does it do.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
July 30, 2021

Where comes CRC_CalcCRC() from?

Single-step in debugger to find out what does it do.

JW

TDK
Super User
July 30, 2021

CRC_CalcCRC is not a standard function.

Looks like it returns the CRC value, however.

https://github.com/blezalex/balance_skate/blob/0defa5feaf6517a626decb2eded11a72f812c978/App/communicator.cpp#L10

The CRC module needs to be initialized first (clock enabled, initial value set).

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