3.3.2 DIAG_CPU_Program_Counter

The Program Counter test is a functional test of the PC. The PC holds the address of the next instruction to be executed. The program counter (PC) test implements the functional tests H.2.16.5 defined by the IEC 60730 standard**. This requirement ID covers the test Subset3 to check functional correctness of all CPU core instructions/features. This API performs the functional test as follows:

  • The Program Counter test invokes functions that are located in Flash memory at different addresses.
  • These functions decrement the value of the PC TestFlag
  • TestFlag value decrements to 0 when PC tests complete successfully.
diag_pc_status_t DIAG_CPU_Program_Counter(
    void
)

Returns