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.

MCU-PLUS-SDK-AM263X: MCRC polynomial selection

Part Number: MCU-PLUS-SDK-AM263X


Tool/software:

Hello,

I am using the SDL MCRC module to calculate the CRC value of some input data.

Section 13.6.4.3.4 of the TRM states that it is possible to select the CRC polynomial - but I cannot see how this is done through the APIs.

The default seems to be the CRC64 equation (32) whereas I need to use CRC32 equation (31).

Thanks in advance for your help.

  • Hi William,

    I will check how to enable the CRC-32 using AM263x SDK, then come back to you later today.

  • Hi William,

    You can use SDL_MCRC_addConfig API to select the CRC type: CRC-64, CRC-32, CRC-16, etc. You can select the CRC-32 by writing 0x2 to bit[4:3] of MCRC_CRC_CTRL0 register if channel 1 is used.

    The API SDL_MCRC_Config[..] is to configure the CRC type, data length, etc.

    static SDL_MCRC_Config_t SDL_MCRC_Config[MCRC_NUM_USE_CASES] =

    {

         {
              SDL_MCRC_CTRL0_CH1_CRC_SEL_32BIT,
              SDL_MCRC_DATALENGTH_32BIT,
              SDL_MCRC_DATA_32_BIT,
              SDL_MCRC_BITSWAP_MSB,
              SDL_MCRC_BYTESWAP_DISABLE