cancel
Showing results for 
Search instead for 
Did you mean: 

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

Trinu
Associate III

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)

1 ACCEPTED SOLUTION

Accepted Solutions

Where comes CRC_CalcCRC() from?

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

JW

View solution in original post

2 REPLIES 2

Where comes CRC_CalcCRC() from?

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

JW

TDK
Guru

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".