SRAM ECC Check problems
I am having trouble with SRAM ECC check on an H7 MCU.
When i enable the registries the system trigger contiuouslly the ISR for a detected error and the status flags/registries are empty.
Also initializing the SRAM at startup dosen't solve the problem.
This is the piece of code that enable the check:
NVIC_DisableIRQ(ECC_IRQn);
RAMECC1->IER &= ~(RAMECC_IER_GIE | RAMECC_IER_GECCSEIE | RAMECC_IER_GECCDEIE | RAMECC_IER_GECCDEBWIE);
RAMECC1_Monitor1->CR &= ~(RAMECC_CR_ECCSEIE | RAMECC_CR_ECCDEIE | RAMECC_CR_ECCDEBWIE);
RAMECC1_Monitor1->SR &= ~(RAMECC_SR_SEDCF | RAMECC_SR_DEDF | RAMECC_SR_DEBWDF);
RAMECC1_Monitor1->CR |= RAMECC_CR_ECCDEBWIE | RAMECC_CR_ECCDEIE;
// RAMECC interrupt enable register (RAMECC_IER) on UNIT1 (D1 Domain)
RAMECC1->IER |= RAMECC_IER_GECCDEBWIE | RAMECC_IER_GECCDEIE;
// Enable Int
NVIC_SetPriority(ECC_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 5, 0));
NVIC_EnableIRQ(ECC_IRQn);
RAMECC1->IER |= RAMECC_IER_GIE;
RAMECC1_Monitor1->CR |= RAMECC_CR_ECCELEN;After this code the system start to call continuously the ISR.
I read the RM0399 manual, the AN5342 and also the HAL example in this community, none of them solved the issue.
May someone help me?
Good work