Dears
Customer is developing their project base on F28035 and take C2000MCU_IEC60730_4_00_01_00 as reference, the reference firmware has include ST0 test case, however do not include the test item for ST1 and RPC register, which the IEC certification company require they must do.
So customer add the test item for ST1 and RPC register according the same method which TI reference firmware for ST0 test. However the CPU will stop running after add the ST1 and RPC test case. Could you please help check customer code as below if it is right? If no, could you help suggest the correct method to test ST1 and RPC register?
/***************Below is TI reference firmware for ST0 test********************************/
PUSH ST0
POP @PL ; save ST0 in PL
PUSH @AL
POP ST0 ; write to ST0
PUSH ST0
POP AR4
CMP AL,@AR4
B fail_CPU_test,NEQ
PUSH @PL
POP ST0 ; restore ST0
/***************Below is customer firmware for ST1 and RPC test********************************/
PUSH ST1
POP @PL ; save ST1 in PL
PUSH @AL
POP ST1 ; write to ST1
PUSH ST1
POP AR4
CMP AL,@AR4
B fail_CPU_test,NEQ
PUSH @PL
POP ST1 ; restore ST1
PUSH RPC
POP @PL ; save RPCin PL
PUSH @AL
POP RPC; write to RPC
PUSH RPC
POP AR4
CMP AL,@AR4
B fail_CPU_test,NEQ
PUSH @PL
POP RPC; restore RPC