Skip to main content
USeid.1
Associate
June 30, 2022
Question

stm32f303rc: SRAM parity error bit NOT SET, but NMI is taken

  • June 30, 2022
  • 2 replies
  • 961 views

SRAM parity check is enabled. In fact, breakpoint in NMI is reached.

But SYSCFG_CFGR2.SRAM_PEF bit is NOT set. See .png.

Disassembly (at bottom) shows, that address of CFGR2 is loaded at R0 ("Registers" to the right) and its contents is loaded to R1. There is no PEF bit set !

Is this a known bug or am I wrong ?

Cross check: if SRAM parity check is disabled, NMI is never taken.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
June 30, 2022

Do you have enabled SYSCFG clock in RCC_APB2ENR?

JW

USeid.1
USeid.1Author
Associate
June 30, 2022

Very good hint ! It is, but not at the early point of execution, where the NMI occurs.:astonished_face:

Thank you very much !