Hi experts,
My customer is using IEC60730 safety lib to do UL certification based on F28035, and they use STL_CPU_TEST_testCpuRegisters to test CPU regs but will fail after about one week of running.
There are some changes in the code: they don't disable the interrupts and place the CPU reg detection code in the highest priority interrupt with highest priority. And they add ST1, RPC detection into it. Is there a risk that this may cause the self-test to fail?
They found that the registers that failed the test were among SP,ST0,DP,IER,IFR,DBGIER and They don't want to disable interrupts due to system control requirements. Is it caused by the addition of ST1 and RPC self-test? I think that a sudden interrupt while testing IFR causes the IFR to be changed, which may cause the self-test to fail. Not sure if my thinking is correct?
By the way, another department of that customer disabled the interrupt when testing the CPU reg self-test code, but it will reset when testing IER IFR. Does reading and writing to IER and IFR cause a reset?
BR
Jim