The compile settings were different. However after moving the files into the cg_src folder, they were the same and the issue was still there. I even created a new file and got the issue there too. The FPU instructions in the compiler cannot be turned on. They are disabled and the checkbox is grayed out. IOW, its a default you can't change. Not sure how to check on V1 and V2 core either. Couldn't find anything. Tried using 64 bit doubles, caused the project ot be unable to compile (redefinitions of constants). Am using the Optimized libraries. Tried using newlib, when got to instruction got an error - something about 'fadd3' not found. Assume that is a lib call. Here is the even more puzzling part: I can sum doubles in an r_cg_* file if the summing statement appears between the 'Start user code here... etc comments. If the statement is outside those comments, it causes the exception. Putting those comments in a file I created does no good.
↧