can someone please give the necessary lines for running a program in CLA with copy tables.
There are two tasks. task 1 and task 8
both are mapped like follows.
UNION {
.Cla1Task1 : LOAD = FLASHE PAGE = 0, table (_task1_copy_table)
.Cla1Task8 : LOAD = FLASHE PAGE = 0, table (_task8_copy_table)
}run = RAML3 PAGE = 0
.ovly > FLASHE PAGE = 0
then i do the following
EALLOW;
Cla1Regs.MPISRCSEL1.bit.PERINT1SEL = CLA_INT1_NONE;
memcpy(&cla1Funcs_runstart, &cla1Funcs_loadstart, (Uint32) &cla1Funcs_loadsize);
Cla1Regs.MMEMCFG.all = CLA_PROG_ENABLE | CLARAM0_ENABLE | CLARAM1_ENABLE | CLARAM2_ENABLE | CLA_RAM1CPUE;
Cla1Regs.MCTL.bit.IACKE = 1;
Cla1Regs.MIER.all = 0x00FF;
EDIS;
copy_in(&task8_copy_table);
EALLOW;
Cla1Regs.MVECT8 = (Uint16) ((Uint32) &Cla1Task8 - (Uint32) &Cla1Prog_Start);
EDIS;
Cla1ForceTask8andWait();
copy_in(&task1_copy_table);
EALLOW;
Cla1Regs.MVECT1 = (Uint16) ((Uint32) &Cla1Task1 - (Uint32) &Cla1Prog_Start);
EDIS;
but nothing happens. Tasks doesn't run. What's wrong here.
Can someone please provide the necessary steps here at least.
Please Note that the CLA runs fine without this copy tables. I had to incorporate copy tables because of the program ram restrictions.