Other Parts Discussed in Thread: MATHLIB,
Tool/software:
My question might not be the correct question, as I don't fully understand the problem. What is occurring is: my calls to sinf and cosf, that the (I think) makefile is picking up from C:\ti\ccs1230\ccs\tools\compiler\ti-cgt-armllvm_4.0.0.LTS\lib\armv7r-ti-none-eabihf/c/libc.a is corrupting many of my global variables. Each of calls is causing wide-ranging memory corruption.
I then thought -- maybe this libc.a is not the correct library to use for math, and I found the mathlib.am263x.r5f.ti-arm-clang.release.lib from the MCU+SDK, but I cannot get the linker to choose this mathlib over libc.a, probably because libc.a is in the compiler path?
I have deleted all compiler-include-path options and linker-file-search-path options except to point to only my source directory.
Any guidance here would be appreciated, but I think the questions are:
1. What is the proper sinf/cosf library to use for the AM2634?
2. Then how do I force the build preference of the preferred library over libc.a?
Thanks,
Jim