Hello,
I'm implementering a Cla class in C++ which handles all Cla related tasks in my appliation
i want to initialise the CLA but encounter compilation problems when computing the task vectors.
I use the CLA C-code compiler *.cla files and C2000 - code generation tools - 6.1.0
I defined the following globally outside of the CLA class and namespace. As defined in TI examples_cla/ folder and code.
//reference to tasks of the CLA defined in *.cla c-code file
interrupt void Cla1Task1();
//defined in linker *.cmd file base address of CLA program code
extern unsigned Cla1ProgStart;
In my Cla class i compute the MVECT1 register as follows
mrCla is a reference to the CLA register interface
mrCla.MVECT1 = ((unsigned)Cla1Task1 - (unsigned)&Cla1ProgStart);
This line results in the following error when compiling:
error #173: invalid type conversion
Q1: How does the c2000 compiler (c++) handle function pointers and casting them to unsigned / Uint16?
Q2: Can i get rid of this error without generating other errors or warnings?
Thanks in advance,
Regards Rob