Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Tool/software:
Hi TI team,
I'm working on a C2000 project using SysConfig, and I'd like to reference macros generated by it (e.g., ePWM_SYNC_BASE from board.h
) inside my CLA and CPU .asm
/ .cla
files.
The goal is to ensure that if I update anything in SysConfig, those changes propagate correctly to all parts of the application — including any low-level assembly code — without manually duplicating values like register base addresses.
However, when I try to use:
.cdecls C, LIST, "board.h"
...in a CLA source file, I get parsing errors, likely due to
board.h
including other headers (like driverlib.h
) that aren’t compatible with the .cdecls
mechanism. I understand .cdecls
has strict limitations and can only include simple macros, not types or complex C constructs.
My Questions:
-
What is the officially recommended way to expose SysConfig-generated macros (like ePWM_SYNC_BASE ) to CLA and/or CPU assembly files?
-
Is there a SysConfig-supported mechanism (or planned feature) to automatically generate a "CLA-safe" header with just
#define
s for addresses and constants? -
Would using the
--preproc_only
compiler option to preprocessboard.h
and filter out only#define
s for a CLA header be considered a safe and supported workaround?
Any insight from the TI tools or C2000 team would be much appreciated!
Thanks in advance,
Sebastia