This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: adding floating point number error

Part Number: TMS320F28069


Hi, the customer is testing 28069 by doing multiple times adding in both CPU and CLA.

In CLA, ClaTask4 is to add the number 11.7 for 20001 times.

ClaTask8 is to initiate the variables and will execute once.

Below is the code in main.c, to add 11.7 for 20001 times in CPU and then force ClaTask4.

They've got the result below:

ClaTmpData1 is the result of adding 11.7 for 20001 times in CLA.

ClaTmpData2 is the result of adding 11.7 for 20001 times in CPU.

But 11.7*20001=234011.7 which is different from the result of CPU or CLA.

And I've tested it on 28379d launchpad and got exactly the same result. and I've noticed that even by adding 11.7 once, I got the result below

Can you tell me why or what I can do to debug? Thanks.