Energy Micro IEC60355 Library Example Project 1.0 (internal use only!) GCC-Version
Example project demonstrating POST and BIST library functions

iec60335_class_b_cpureg_test_post_gcc.asm File Reference

assemble based POST CPU register test for GCC compiler ; * IEC60335 Class B CPU register tests ; * More...

Go to the source code of this file.

Variables

text syntax unified global
ASMCPUregTestPOST type 
ASMCPUregTestPOST
text syntax unified global
ASMCPUregTestPOST type
function equ 
testState
text syntax unified global
ASMCPUregTestPOST type
function equ equ 
testResult
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ 
pattern1
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ 
pattern2
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ 
pattern3
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ 
pattern4
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ 
pattern5
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ 
pattern6
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ 
pattern7
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ 
pattern8
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ 
TestClear
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ 
TestState_r0
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ 
TestState_r1r7
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ 
TestState_r8r12
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ 
TestStateMSP
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ 
TestStatePSP
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ 
TestStateLR
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ 
TestStateAPSR
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ 
TestStatePRIMASK
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ 
TestStateFAULTMASK
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ 
TestStateBASEPRI
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ 
TestResult_fail
text syntax unified global
ASMCPUregTestPOST type
function equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ 
TestResult_pass
lr cmp r12
lr cmp lr bne w Test_CPU_SFR_fail
ldr r0
ldr str Test_r0
movw movt lsr cmp bne w Test_r0_Exit
Test_r0_pass __pad11__
b Test_r1_r7 Test_r1_r7
ldr r8 = pattern1
ldr orr r7 str ldr mov r1 = pattern1
ldr orr r7 str ldr mov r0 mov r2
ldr orr r7 str ldr mov r0 mov
r0 mov 
r3
ldr orr r7 str ldr mov r0 mov
r0 mov r0 mov 
r4
ldr orr r7 str ldr mov r0 mov
r0 mov r0 mov r0 mov 
r5
ldr orr r7 str ldr mov r0 mov
r0 mov r0 mov r0 mov r0 mov 
r6
ldr orr r7 str ldr mov r0 mov
r0 mov r0 mov r0 mov r0 mov r0
mov 
r7
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w 
Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit
cmp r0 bne w Test_r1_r7_Exit 
Test_r1_r7_pass
Test_r8_r12
Test_r8_r12 __pad12__
ldr orr r7 str ldr mov r0 mov r9
ldr orr r7 str ldr mov r0 mov
r0 mov 
r10
ldr orr r7 str ldr mov r0 mov
r0 mov r0 mov 
r11
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w 
Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit
cmp r0 bne w Test_r8_r12_Exit 
Test_r8_r12_pass
Test_MSP __pad13__
mrs CONTROL
mov r13
mrs MSP cmp r5 bne Test_MSP_Exit
ldr r0 mrs MSP
cmp r0 bne Test_MSP_Exit Test_MSP_pass
Test_PSP __pad14__
mrs PSP
mrs PSP cmp r5 bne Test_PSP_Exit
cmp r0 bne Test_PSP_Exit Test_PSP_pass
Test_LR __pad15__
mov r14
cmp r0 bne Test_LR_Exit
cmp r0 bne Test_LR_Exit Test_LR_pass
Test_APSR __pad16__
mrs APSR
mrs APSR cmp r0 bne Test_APSR_Exit
mrs APSR cmp r0 bne Test_APSR_Exit Test_APSR_pass
Test_PRIMASK __pad17__
mrs PRIMASK
mrs PRIMASK cmp r0 bne Test_PRIMASK_Exit
mrs PRIMASK cmp r0 bne
Test_PRIMASK_Exit 
Test_PRIMASK_pass
Test_FAULTMASK __pad18__
mrs FAULTMASK
mrs FAULTMASK cmp r0 bne Test_FAULTMASK_Exit
mrs FAULTMASK cmp r0 bne
Test_FAULTMASK_Exit 
Test_FAULTMASK_pass
Test_BASEPRI __pad19__
mrs BASEPRI
mrs BASEPRI cmp r0 bne Test_BASEPRI_Exit
mrs BASEPRI cmp r0 bne
Test_BASEPRI_Exit 
Test_BASEPRI_pass
ldr Test_CPU_SFR_Exit
bx lr

Detailed Description

assemble based POST CPU register test for GCC compiler ; * IEC60335 Class B CPU register tests ; *

; * ; *

Author:
Energy Micro AS ; *
Version:
1.0.0 ; ******************************************************************************* ; *

License

; * (C) Copyright 2010 Energy Micro AS, http://www.energymicro.com ; ******************************************************************************* ; * ; * This source code is the property of Energy Micro AS. The source and compiled ; * code may only be used on Energy Micro "EFM32" microcontrollers. ; * ; * This copyright notice may not be removed from the source code nor changed. ; * ; * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no ; * obligation to support this Software. Energy Micro AS is providing the ; * Software "AS IS", with no express or implied warranties of any kind, ; * including, but not limited to, any implied warranties of merchantability ; * or fitness for any particular purpose or warranties against infringement ; * of any proprietary rights of a third party. ; * ; * Energy Micro AS will not be liable for any consequential, incidental, or ; * special damages, or any other relief, or for any claim by any third party, ; * arising from your use of this Software. ; * ;

Definition in file iec60335_class_b_cpureg_test_post_gcc.asm.


Variable Documentation

msr APSR

Definition at line 480 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ thumb thumb_func ASMCPUregTestPOST

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr BASEPRI

Definition at line 617 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr r4 msr CONTROL

Definition at line 289 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr FAULTMASK

Definition at line 571 of file iec60335_class_b_cpureg_test_post_gcc.asm.

bx lr

Definition at line 666 of file iec60335_class_b_cpureg_test_post_gcc.asm.

ldr r0 mrs MSP

Definition at line 324 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ pattern1

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ pattern2

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ pattern3

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ pattern4

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ pattern5

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ pattern6

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ pattern7

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ pattern8

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr PRIMASK

Definition at line 526 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr PSP

Definition at line 376 of file iec60335_class_b_cpureg_test_post_gcc.asm.

ldr r0

Definition at line 74 of file iec60335_class_b_cpureg_test_post_gcc.asm.

mrs BASEPRI cmp r1 = pattern1

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r8_r12_Exit cmp r0 bne w Test_r8_r12_Exit cmp r10

Definition at line 228 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r8_r12_Exit cmp r0 bne w Test_r8_r12_Exit cmp r0 bne w Test_r8_r12_Exit cmp r11

Definition at line 228 of file iec60335_class_b_cpureg_test_post_gcc.asm.

mov r12

Definition at line 69 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r13

Definition at line 302 of file iec60335_class_b_cpureg_test_post_gcc.asm.

mov r14

Definition at line 436 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r1_r7_Exit cmp r2

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

msr r3

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

mrs PSP cmp r4

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

mrs r5

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

ldr orr r10 str mov msr r6

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r7

Definition at line 154 of file iec60335_class_b_cpureg_test_post_gcc.asm.

ldr orr r10 str r8 = pattern1

Definition at line 147 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r8_r12_Exit cmp r9

Definition at line 228 of file iec60335_class_b_cpureg_test_post_gcc.asm.

ldr str Test_r0

Definition at line 76 of file iec60335_class_b_cpureg_test_post_gcc.asm.

cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit cmp r0 bne w Test_r1_r7_Exit

Definition at line 164 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ TestClear

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ testResult

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestResult_fail

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestResult_pass

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ testState

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ TestState_r0

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ TestState_r1r7

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestState_r8r12

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateAPSR

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateBASEPRI

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateFAULTMASK

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateLR

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateMSP

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStatePRIMASK

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.

text syntax unified global ASMCPUregTestPOST type function equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStatePSP

Definition at line 34 of file iec60335_class_b_cpureg_test_post_gcc.asm.