Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution


+ Reply to Thread
Results 1 to 3 of 3

Thread: TriCore TC277 CRC Generation

  1. #1
    New Member New Member rhbarnes is on a distinguished road
    Join Date
    Nov 2018
    Posts
    2
    Points
    40

    TriCore TC277 CRC Generation

    Hi,

    I am looking into the possibility of using the FCE peripheral in 32-bit CRC mode to validate application code stored in PFlash. The application code will contain its CRC value that is calculated at link time using the Tasking linker checksum algorithm which is also used to create the boot mode header (BMHD) CRC values. I can successfully get the linker to create a 32-bit CRC over a specified flash memory range and embed this value to a known location; I can also get the FCE to calculate its CRC over this same range but the two CRC's differ. I am still trying to understand why they are not the same and have even limited the address range to a single 32-bit value. I notice in the FCE and linker documentation, the former refers to using a polynomial of 0x04C11DB7 and the latter a polynomial of 0xEDB88320; apparently one is the reversed polynomial of the other. Does this render using the FCE and linker CRC calculations incompatible with each other? i.e. will they always return different CRC's?

    Any help/suggestions much appreciated.
    Regards
    Richard

  2. #2
    New Member New Member rhbarnes is on a distinguished road
    Join Date
    Nov 2018
    Posts
    2
    Points
    40
    Any suggestions/thoughts??

  3. #3
    Beginner Beginner
    Infineon Employee
    Infineon Employee
    VincentWan is on a distinguished road
    Join Date
    Jun 2019
    Location
    Singapore
    Posts
    8
    Points
    185
    Hi

    Yes, with different polynomial, you will get different CRC results.
    You can try the link below to check your calculated data CRC result with different polynomial.

    http://www.sunshine2k.de/coding/java...rc/crc_js.html
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided as is. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.