Hi expert,
My cutomer find NMI interrupt is triggered when calling flash API Fapi_setupFlashStateMachine in RAM. When this error happens, RESC register shows value of 0xC0000004 while not NMI event is logged in register:
R NmiIntruptRegs_NMICFG 0x0000000F 0x0001
R NmiIntruptRegs_NMIFLG 0x0000000F 0x0000
R NmiIntruptRegs_NMIFLGCLR 0x0000000F 0x0000
R NmiIntruptRegs_NMIFLGFRC 0x0000000F 0x0000
R NmiIntruptRegs_NMIWDCNT 0x0000000F 0x0000
R NmiIntruptRegs_NMIWDPRD 0x0000000F 0xFFFF
R NmiIntruptRegs_NMISHDFLG 0x0000000F 0x0000
The assembly code they are stopping at shows:
Could you provide us with further steps to debug this issue?
PS: Based on current findings, by adding some random code, this issue will not occur. This issue is also dedicated to happen when boot code load the app code to flash.
Thanks
Sheldon