Tool/software:
Can the same macro definition be used to replace certain constants in both CMD and ASM files?
For example, when allocating stack size in TMS570:
define stackA 100
define stackB 200
define stackC 200
cmdfile:
STACKS (RW) : origin= (0x08000000) length=stackA + stackB + stackC
Asmfile:
userSp .word 0x08000000 + stackA
svcSp .word 0x08000000+ stackA+stackB
fiqSp .word 0x08000000 + stackA+stackB +stackC
I couldn't find any documentation on the syntax of CMD files. Also, is the assembly syntax for TMS570 based on SPNU118? The compiler we are using is TI v20.2.7.LTS