Part Number: SAFETI_DIAG_LIB
Dear Expert,
I have added safe ti lib RM48 safeTi_diagnose code in my application. But compiler showing below error when its link to sl_asm_api.asm file. I have added sl_config.h file also at location "../safety_library/include/sl_config.h"
"C:\\ti\\ccs1200\\ccs\\utils\\bin\\gmake" -k -j 4 all -O
Building file: "../safety_library/source/sl_asm_api.asm"
Invoking: Arm Compiler
"C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-arm_20.2.6.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 -me -O4 --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/proj_V1.08_development/include" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/hal/include" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/safety_application/include" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/safety_application/source" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/safety_library/include" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs/safety_library/source" --include_path="D:/proj/development/V1.00/proj_V1.08_development/ccs" --include_path="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-arm_20.2.6.LTS/include" --define=_INLINE --define=_VFP_SUPPORT_=1 --define=_RM48x_ --strict_ansi --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --abi=eabi --check_misra="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20" --preproc_with_compile --preproc_dependency="safety_library/source/sl_asm_api.d_raw" --obj_directory="safety_library/source" "../safety_library/source/sl_asm_api.asm"
36 Assembly Errors, 25 Assembly Warnings
>> Compilation failure
safety_library/source/subdir_rules.mk:9: recipe for target 'safety_library/source/sl_asm_api.obj' failed
At end of source: error #97: a translation unit must contain at least one declaration
"../safety_library/source/sl_asm_api.asm", WARNING! at line 41: [E1000] error while processing C code in .cdecls directive
.cdecls C, LIST, "sl_config.h"
"../safety_library/source/sl_asm_api.asm", ERROR! at line 212: [E0001] Undefined symbol
MOV R0, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 213: [E0001] Undefined symbol
MOV R1, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 214: [E0001] Undefined symbol
MOV R2, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 215: [E0001] Undefined symbol
MOV R3, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 216: [E0001] Undefined symbol
MOV R4, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 217: [E0001] Undefined symbol
MOV R5, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 218: [E0001] Undefined symbol
MOV R6, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 219: [E0001] Undefined symbol
MOV R7, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 220: [E0001] Undefined symbol
MOV R8, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 221: [E0001] Undefined symbol
MOV R9, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 222: [E0001] Undefined symbol
MOV R10, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 223: [E0001] Undefined symbol
MOV R11, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 224: [E0001] Undefined symbol
MOV R12, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 225: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 230: [E0001] Undefined symbol
MOV R8, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 231: [E0001] Undefined symbol
MOV R9, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 232: [E0001] Undefined symbol
MOV R10, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 233: [E0001] Undefined symbol
MOV R11, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 234: [E0001] Undefined symbol
MOV R12, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 235: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 236: [E0001] Undefined symbol
MOV R14, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 241: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 242: [E0001] Undefined symbol
MOV R14, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 247: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 248: [E0001] Undefined symbol
MOV R14, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 253: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 254: [E0001] Undefined symbol
MOV R14, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 259: [E0001] Undefined symbol
MOV R13, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", ERROR! at line 260: [E0001] Undefined symbol
MOV R14, #SL_REG_INIT_VAL
"../safety_library/source/sl_asm_api.asm", WARNING! at line 492: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeSVC: .field (StackModeSVC + STACK_SIZE_MODE_SVC), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 492: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeSVC: .field (StackModeSVC + STACK_SIZE_MODE_SVC), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 492: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeSVC: .field (StackModeSVC + STACK_SIZE_MODE_SVC), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 492: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeSVC: .field (StackModeSVC + STACK_SIZE_MODE_SVC), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 492: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeSVC: .field (StackModeSVC + STACK_SIZE_MODE_SVC), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 493: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeFIQ: .field (StackModeFIQ + STACK_SIZE_MODE_FIQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 493: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeFIQ: .field (StackModeFIQ + STACK_SIZE_MODE_FIQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 493: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeFIQ: .field (StackModeFIQ + STACK_SIZE_MODE_FIQ), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 493: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeFIQ: .field (StackModeFIQ + STACK_SIZE_MODE_FIQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 493: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeFIQ: .field (StackModeFIQ + STACK_SIZE_MODE_FIQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 494: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeIRQ: .field (StackModeIRQ + STACK_SIZE_MODE_IRQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 494: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeIRQ: .field (StackModeIRQ + STACK_SIZE_MODE_IRQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 494: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeIRQ: .field (StackModeIRQ + STACK_SIZE_MODE_IRQ), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 494: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeIRQ: .field (StackModeIRQ + STACK_SIZE_MODE_IRQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 494: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeIRQ: .field (StackModeIRQ + STACK_SIZE_MODE_IRQ), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 495: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeABT: .field (StackModeABT + STACK_SIZE_MODE_ABT), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 495: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeABT: .field (StackModeABT + STACK_SIZE_MODE_ABT), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 495: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeABT: .field (StackModeABT + STACK_SIZE_MODE_ABT), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 495: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeABT: .field (StackModeABT + STACK_SIZE_MODE_ABT), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 495: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeABT: .field (StackModeABT + STACK_SIZE_MODE_ABT), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 496: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeUND: .field (StackModeUND + STACK_SIZE_MODE_UND), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 496: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeUND: .field (StackModeUND + STACK_SIZE_MODE_UND), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 496: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeUND: .field (StackModeUND + STACK_SIZE_MODE_UND), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 496: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeUND: .field (StackModeUND + STACK_SIZE_MODE_UND), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 496: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeUND: .field (StackModeUND + STACK_SIZE_MODE_UND), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 497: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeSYS: .field (StackModeSYS + STACK_SIZE_MODE_SYS), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 497: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
gStackModeSYS: .field (StackModeSYS + STACK_SIZE_MODE_SYS), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 497: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
gStackModeSYS: .field (StackModeSYS + STACK_SIZE_MODE_SYS), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at line 497: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
gStackModeSYS: .field (StackModeSYS + STACK_SIZE_MODE_SYS), 32
"../safety_library/source/sl_asm_api.asm", WARNING! at line 497: [W1500] warning: relocation template 280 not found; returning OFR_INVALID
gStackModeSYS: .field (StackModeSYS + STACK_SIZE_MODE_SYS), 32
"../safety_library/source/sl_asm_api.asm", ERROR! at EOF: [E0300] The following symbols are undefined:
STACK_SIZE_MODE_IRQ
STACK_SIZE_MODE_SVC
SL_REG_INIT_VAL
STACK_SIZE_MODE_SYS
STACK_SIZE_MODE_ABT
STACK_SIZE_MODE_UND
STACK_SIZE_MODE_FIQ
Errors in Source - Assembler Aborted
gmake: *** [safety_library/source/sl_asm_api.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Please let me know how to solved this error