infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

Banner_Aurix_Competition Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio

+ Reply to Thread
Results 1 to 2 of 2

Thread: Erased Flash ECC ( When read by HSM Core), TC399

  1. #1
    New Member New Member umair is on a distinguished road
    Join Date
    May 2020

    Erased Flash ECC ( When read by HSM Core), TC399

    I have query regarding 'Reading Erased PFlash by HSM Core' in Aurix TC399 Microcontroller.
    One of the use case in our product requires that HSM Core has to read PFLASH memory area in order to calculate AES-CMAC.

    i am aware that if any of the CPUx reads an Erased FLash Page from PFlash, it will encounter an ECC exception. And there is way to disable this using FLASHCON1.MASKUECC and FLASHCON2.ECCCORDIS.
    But i want to ask that, Can i also disable the ECC exception by modifying the above register for HSM core also. Or is there any other way to disable the erase flash read ecc exception for HSM core.
    What i want is to calculate the CMAC of a PFLASH memory range using HSM core, this memory range will contain both erase and written pages. I want no ECC exception on HSM core when HSM core reads the the PFlash. And i also want that CMAC result is the same each time, i mean reading erased PFLASH pages by HSM core shall return a fixed data e.g all zeroes with no ECC exception.
    Thank you for your help.

  2. #2
    Advanced Advanced UC_wrangler will become famous soon enough
    Join Date
    Jun 2019
    This usually doesn't work out - you're generally better off using the PMU Verify Erased commands to detect erased memory.

    Reading from erased PFLASH swamps the ECC algorithm, which means it sometimes returns 1 bits here and there.

    What if the TriCore encounters a real uncorrectable error while the HSM is reading its PFLASH range? Disabling ECC can result in incorrect instructions or incorrect data.

+ Reply to Thread

Tags for this Thread


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.