Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216641

Forum Post: TMS320F28379D: CLA_divide example code not running correctly

$
0
0
Part Number: TMS320F28379D Hello, I have been trying to run the example code from controlSUITE "cla_divide_cpu01". In the main function, there is a function called CLA_runtest() that must verify that the CLA task gives us correct results. The code is shown below: void CLA_runTest(void) { int i, error; for(i=0; i<BUFFER_SIZE; i++) { Num = (float)(BUFFER_SIZE - i); Den = (float)(BUFFER_SIZE + i); Cla1ForceTask1andWait(); y[i] = Res; error = fabs(div_expected[i]-y[i]); if (error < 0.01) { pass++; } else { fail++; } } #if 0 Cla1ForceTask2andWait(); WAITSTEP; Cla1ForceTask3andWait(); WAITSTEP; Cla1ForceTask4andWait(); WAITSTEP; Cla1ForceTask5andWait(); WAITSTEP; Cla1ForceTask6andWait(); WAITSTEP; Cla1ForceTask7andWait(); WAITSTEP; Cla1ForceTask8andWait(); WAITSTEP; #endif } There is a line that says Cla1ForceTask1andWait(); , which forces Task 1 with the IACK instruction and waits until Task 1 is completed. I had assumed that the function Cla1ForceTask1andWait(); must be finished quickly and the debugger should proceed to the next line, but it does not. The debugger is stuck at that line and the program does not run to completion. Is this normal for this particular example? I assumed that the code must not be stuck there. But I am not very sure, maybe the debugger must be stuck there. Or do you think I have not configured something properly before I built and debugged the example? This is an issue for all other example codes that involves the CLA. Thank you, Yoon

Viewing all articles
Browse latest Browse all 216641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>