Getting errors when using HETPv1.4
Building my own het program, call it 'het_pgm.het'
When het_pgm.het is assembled: c:\ti\NHETAS~1\v1.4\bin\hetp.exe -v2 -n1 -hc32 ..\het_pgm.het
(the '..\' is necessary for CCS building - more on this in another post but it's not related to this issue.)
Ok, so this generates a 'het_pgm.h' and 'het_pgm.c'.
You need to include 'std_het.h' from the assemblers install directory: c:\ti\NHETAS~1\v1.4\include
first, before het_pgm.h because het_pgm.h relies on some definitions in std_het.h.
Now, std_het.h defines:
#ifndef
# define
HET_v2 0
#endif
This creates a problem when the generated 'het_pgm.h' is processed, because this includes
the definition:
#define
Which throws an this warning message:
"..\sent.h", line 1: warning: incompatible redefinition of macro "HET_v2" (declared at line 15 of "C:/ti/NHET assembler/v1.4/header/std_het.h")
While this is a 'warning' - the obvious concern is what else may break if 'std_het' is processed thinking HET_v2 is 'off' but the program is built for HET_v2 'on'.