Part Number: LAUNCHXL-F28377S
Tool/software: Code Composer Studio
I have the strangest result happening. I've copied the code from the cla_sqrt_cpu01 example. I updated my memory map to support the shared memory, and the CLA program and data memory. I cut and pasted most of the code from the example into my working project. Now, if I call the CLA function from my main function, and check the variables in the debugger, the inputs and results are exactly as expected (I tried it for 2, 4, 9, 7, etc, just to make sure the value wasn't being cached or written somewhere in the code).
However, if I try to read either the fVal or fResult in the program itself, it will always crash at that point. Even if I try to set another variable (local or global) to either variable (that is then later used, for instance with printf), it will crash. Obviously, this behavior does not occur for the example code. I've even tried doing complex calculations with the result (again to make sure that the compiler isn't just storing the underlying steps).
I'm stumped on this behavior, and would appreciate any advice.