3.1.2.1 DIAG_CPU_SelfTestSubset1()

diag_result_t DIAG_CPU_SelfTestSubset1 (void )

Executes the CPU Self-Test Subset-1.  

Functional items covered by Subset-1 are mentioned below: MOV and MOVW instructions Addressing modes: Immediate, File Register, Register Direct and Indirect (with Pre-Increment, Post-Increment, Pre-Decrement, Post-Decrement, Literal Offset and Register Offset) All bits of the program memory address bus All bits of the SRAM data memory address bus All bits of the SRAM data bus SWAP instruction Compare, bit manipulation, bit test and bit-compare-skip operations Read/write operations of CPU registers.

Parameters:
None.
Returns:

DIAG_PASS - CPU Self-Test Subset-1 executed successfully

DIAG_FAIL - A Fault is detected during the CPU Self-Test Subset-1 diagnosis

MISRA C:2012 Deviation Required: misra-c2012-20.9  

Justification: False positive - This function uses the RAMPZ_EXIST macro which is conditionally defined if FLASHSIZE_64KB is less than or equal to DIAG_FLASH_ARRAY_HIGH_ADDRESS. However, FLASHSIZE_64KB is only defined as part of this check for applicable devices and thus it will always be defined when used.