Catching parity error

How can I catch SRAM parity error?

  • 0
    •  Analog Employees 
    on Sep 24, 2013 1:55 AM over 7 years ago

    SRAM Parity errors are detectable by associated interrupt handler. Inside handler you can check for more info about what interface and what address prompted the error. So typically one can do somethin g like below. Please refer to Hardware Reference Manual for more details of the bits and registers.

    void __ramfunc M4P_CORE_SRAM_PERR_Int_Handler()
    {
      stat++;
     
      //clear core status
      if(*pREG_M4P0_SRAM_PEADDR_CORE & BITM_M4P_SRAM_PEADDR_CORE_STAT)
      *pREG_M4P0_SRAM_PEADDR_CORE |= BITM_M4P_SRAM_PEADDR_CORE_STAT; 
     

      //check BMSK / STAT / MSTAT / BUS / ADDR here and perform action

      __NOP();


    }
    void __ramfunc M4P_DMA_SRAM_PERR_Int_Handler()
    {
      stat++; 
         
      //clear dma status
      if(*pREG_M4P0_SRAM_PEADDR_DMA & BITM_M4P_SRAM_PEADDR_DMA_STAT) 
      *pREG_M4P0_SRAM_PEADDR_DMA |=  BITM_M4P_SRAM_PEADDR_DMA_STAT;

      //check BMSK / STAT / MSTAT / BUS / ADDR here and perform action

      __NOP();

    }

  • 0
    •  Analog Employees 
    on May 8, 2019 10:43 AM over 1 year ago
    This question has been closed by the EZ team and is assumed answered.