Part Number: TMS320F28379S
Tool/software:
I'm trying to run the hwbist provided by the SafeTIDiagnosticLibrary in a project that's using the C6000 EABI but I'm getting an error during compilation. Is it possible to do that and if so what workarounds do I need to employ to get the project to build properly?
Below there's the related compiler output up to the firs error. I've checked and "hw_sysctl.h" appears to have loaded properly and "SYSCTL_O_RESC" shows up in the .lst file.
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 43: [E1000] error while processing C code in .cdecls directive
.cdecls C, LIST, WARN, "inc/hw_memmap.h"
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 44: [E1000] error while processing C code in .cdecls directive
.cdecls C, LIST, "inc/hw_sysctl.h"
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 168: [W1500] warning: relocation template 275 not found; returning OFR_INVALID
MOVW DP, #((CPUSYS_BASE + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", REMARK at line 168: [R0001] After symbol substitution the line became:
MOVW DP, #((0x0005D300U + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 168: [W1500] warning: relocation template 277 not found; returning OFR_INVALID
MOVW DP, #((CPUSYS_BASE + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", REMARK at line 168: [R0001] After symbol substitution the line became:
MOVW DP, #((0x0005D300U + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 168: [W1500] warning: relocation template 258 not found; returning OFR_INVALID
MOVW DP, #((CPUSYS_BASE + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", REMARK at line 168: [R0001] After symbol substitution the line became:
MOVW DP, #((0x0005D300U + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 168: [W1500] warning: relocation template 277 not found; returning OFR_INVALID
MOVW DP, #((CPUSYS_BASE + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", REMARK at line 168: [R0001] After symbol substitution the line became:
MOVW DP, #((0x0005D300U + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", WARNING! at line 168: [W1500] warning: relocation template 265 not found; returning OFR_INVALID
MOVW DP, #((CPUSYS_BASE + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", REMARK at line 168: [R0001] After symbol substitution the line became:
MOVW DP, #((0x0005D300U + SYSCTL_O_RESC) >> 6)
"/libraries/diagnostic/f2837xs/source/stl_hwbist_s.asm", ERROR! at line 169: [E0200] Unable to resolve this relocatable expression; relocation support for arbitrary expressions is not available in the C6000 EABI
MOV @(SYSCTL_O_RESC & 0x40), #0x00000000