This example demonstrates the usage of the MCRC module. The example shows how to setup and use the MCRC controller in the auto mode of operation. Shows the generation of matching CRC as well as non-matching signature due to insertion of error in the block of information on which the CRC is being performed or in the signature provided to the PSA Signature Register (or both, depending on the mode).
MCRC Test Application
MCRC AUTO CPU mode on Channel 1: Transfer Test Started...
Calculating Reference MCRC signature Value.
MCRC signature value : 0x1c133adab4dd50fU
MCRC Full Mode Computation Time: 1085us
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Auto Mode Computation Time: 10us
MCRC AUTO CPU mode on Channel 2: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Auto Mode Computation Time: 10us
MCRC AUTO CPU mode on Channel 3: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Auto Mode Computation Time: 10us
MCRC AUTO CPU mode on Channel 4: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Auto Mode Computation Time: 10us
Test Name: MCRCAutoCPUfunctest_main PASSED
All tests have passed.