Hello,
I'm running a parity check for the n2het, but for some unknown reason, it doesn't catch a parity error during the boot process.
The bootloader was coded by me, I'm not using HALcogen. And I know that I'm initializaing both N2het modules (bit 3 and 15 in MSIENA).
void NHET1_RAM_ParityCheck() { volatile unsigned int parError = 0; asm(" b #-8"); /*For debug purposes*/ N2HETReg1->HETPCR = 0x10AU; N2HET1_RAM_PARITY_LOCATION ^= 0x1U; N2HETReg1->HETPCR = 0xAU; parError = N2HET1_RAM; if(!(ESMReg->ESMSR1 & 0x80U)) { while(1); } else { ESMReg->ESMSR1 = 0x80U; N2HETReg1->HETPCR = 0x10AU; N2HET1_RAM_PARITY_LOCATION ^= 0x1U; N2HETReg1->HETPCR = 0xAU; } }
All other modules run the parity check without problems, but this one isn't working. Any ideas why?