This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280039C: VCRC configuration to match standard crc-32 algorithm

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Hi,

I am trying to configure the VCRC to produce an output equivalent to this calculator for a CRC-32 algorithm: https://crccalc.com/?crc=12&method=CRC-32&datatype=ascii&outtype=0

I have followed the 28003x_vcrc_crc_32 example from C2000Ware and came up with the following code:

    uint16_t buffer[1] = {0x3132};

    uint32_t crcResult = 0;

    txCrcHandle->seedValue = 0xFFFFFFFF;
    txCrcHandle->nMsgBytes = 2;
    txCrcHandle->parity = CRC_parity_even;
    txCrcHandle->crcResult = 0;
    txCrcHandle->pMsgBuffer = (uint16_t *)&buffer[0];
    txCrcHandle->init = CRC_init32Bit;
    txCrcHandle->run = CRC_run32BitPoly1;

    txCrcHandle->init(txCrcHandle);
    txCrcHandle->run(txCrcHandle);

    crcResult = txCrcHandle->crcResult;

which when run produces a result of 0x40442760. This does not match the result from the link above (0x4F5344CD).

I have tried several other settings and none of them will get the result to line up with the online calculators.

Any suggestions for what settings need changed would be appreciated.

Thanks,

Kevin