I am trying to implement on-line BIST configuration of STCU unit, but I keep getting the IVOR1 error when I try to write to MB_CTRL register. It blows up from MB_CTRL.
What is the reason behind this.
To write, I use
STCU2->MB_CTRL = (1 <<STCU2_MB_CTRL_CSM_SHIFT)| //run concurrently.
(0x11 << STCU2_MB_CTRL_PTR_SHIFT); //Start from mbist0, next mbist is mbist1. Reference man. page 3261
and these are the IVOR errors I get:
IVOR1_Exception_Handler() at exception.c:212 0xa1927e
prolog_IVOR1() at core0_intc_sw_handlers.S:139 0xa11a1c
Thank you for your help.
Since you did not shared device you are using. I can only assume.
Your IVOR1 is a result of trying to write to key protected registers.
Make sure you unlock and refresh STCU register watchdog (by repeating key 2) during configuration phase of STCU.
If you share the device part number, I might have the correct config code.