Logo
MSP430IEC60730SWPackage
Cpu_test_api

Functions

uint8_t IEC60730_CPU_TEST_testCpuRegisters ()
 

Detailed Description

Function Documentation

uint8_t IEC60730_CPU_TEST_testCpuRegisters ( void  )

Test CPU registers

This C-callable assembly routine tests CPU core registers for stuck at bits. The following registers are tested:

  • R4
  • SP
  • SR
  • R5-R15 The registers are tested in the order listed above

Modified registers are R4, SP, SR, and R5-R15

Returns
SIG_CPU_REG_TEST.- if test does not detects stuck at bits. TEST_FAILED. - if test detects stuck at bits in CPU registers and JUMP_TO_FAILSAFE is disabled in "IEC60730_user_config.h".