Part Number: TMS320F28035
Dear team:
I use F28035 chip. The program in Task1 of CLA written in assembly can run, but the inner program of CNTL_2P2Z_CLA function (assembler in library) that it calls cannot run.
The main.c file defines:
#pragma DATA_SECTION(test_cla1, "Cla1ToCpuMsgRAM");
volatile long test_cla1;
;----------------------------------------
在cla运行的task1中:
.ref _test_cla1
;==============================
.sect "Cla1Prog:_Cla1Task1"
.align 2
.global _Cla1Task1
_Cla1Task1:
MMOVIZ MR0,#0 ;//1
MMOVXI MR0,#123 ;//2
MMOV16 @_test_cla1, MR0 ;//3
CNTL_2P2Z_CLA 1
_Cla1Task1End:
By moving the statements 1-3 above into the CNTL_2P2Z_CLA function, it is found that the value of test_cla 1 is still the initial value, not 123.
May I ask what the problem is? Thank you!