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.

PROCESSOR-SDK-AM62X: Run time CRC generation using MCRC module

Part Number: PROCESSOR-SDK-AM62X

Hello Team,

We are analyzing the CRC generation possibilities. We tried out the possibility to generate the CRC for the SECTIONS directive in the linker command file. The arm llvm version 2.1.3.lts supports CRC generation using TMS570_CRC64_ISO algorithm.

For the run time CRC generation, the MCRC module could be used, In the Technical Reference Manual(Literature Number: SPRUIV7A MAY 2022 – REVISED NOVEMBER 2022), there is no information regarding the algorithm used for the CRC calculation.

Is the CRC generated from the MCRC module compatible with the CRC generated using the crc_table option?

Regards,

Kothai

  • Hello Kothai,

    Which core will you be performing the runtime CRC from, R5 or A53? And which SDK will you be using the MCRC module from, Linux SDK or the MCU+SDK SDL?

    Regards,
    Krithika

  • Hello Krithika,

    We will be calculating the CRC from R5F core. Is there any driver for MCRC module already available as part of the SDK? We use MCU+SDK SDL.

    One more question, Can the MCRC module be used in the Safety context?

    In AUTO mode, signature calculation and verification is done in the background without the intervention of the CPU. And the interrupt is issued to the CPU when there is a mismatch in the CRC, IS there any way that the CPU gets notified, when the signature verification is done?

    Also, When the MCRC module is not working properly, how will the CPU be notified?

    Regards,

    Kothai

  • Hello Kothai,

    Is there any driver for MCRC module already available as part of the SDK?

    A: For the R5 core, the SDL MCRC driver is available as part of the MCU+SDK from 08.06.00.18 release onwards.
    https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/08_06_00_18/exports/docs/api_guide_am62x/SDL_MCRC_PAGE.html

    Can the MCRC module be used in the Safety context?

    A: Yes the SDLs are designed to be used in the Safety context.

    In AUTO mode, signature calculation and verification is done in the background without the intervention of the CPU. And the interrupt is issued to the CPU when there is a mismatch in the CRC, IS there any way that the CPU gets notified, when the signature verification is done?

    Also, When the MCRC module is not working properly, how will the CPU be notified

    A: The TRM section "12.8.3.2.11 Interrupts" and "Table 12-4092. Interrupt Conditions Per CRC Mode" indicate the different interrupts available in each of the modes.
    In AUTO mode, the CPU does not get notified on completion of compression. The timeout interrupt could be considered as notification of the MCRC module not working properly.

    there is no information regarding the algorithm used for the CRC calculation.

    Is the CRC generated from the MCRC module compatible with the CRC generated using the crc_table option?

    A: Yes, the algorithm used is not found in the TRM. I have not been able to get a confirmation from the SW development team either. Please give me a couple of days time to check this with the design and IP team, thanks.

    Regards,
    Krithika

  • Kothai,

    Which version of the TRM are you referring to? 

    For the polynomial information to generate the expected PSA signature, I se this in the AM62x TRM:

    Is this not what you are looking for?

    To answer your question on --- > One more question, Can the MCRC module be used in the Safety context?

    Yes the primary purpose of MCRC is in the safety contexxt.

    MCRC-T1 and MCRC-T2 are test for diagnostics that should be run to test the CRC prior to running the safety application. Refer to the safety manual for more details.

    Regards,

    Neelima

  • Hello both,

    Thanks for the answers.

    The TRM version that i am referring is Literature Number: SPRUIV7A MAY 2022 – REVISED NOVEMBER 2022.

    I will check the safety manual for the diagnostics tests and get back to you if i have further questions.

    Regards,

    Kothai

  • Hello both,

    Thanks for the answers.

    The TRM version that i am referring is Literature Number: SPRUIV7A MAY 2022 – REVISED NOVEMBER 2022.

    I will check the safety manual for the diagnostics tests and get back to you if i have further questions.

    Regards,

    Kothai