Tool/software: Code Composer Studio
Hello,
Issue:
Use of functions like asin, fmod, and others are causing run time faults (NVIC_FAULT_STAT 0x00011400).
Versions of Everything:
GNU v7.2.1 (Linaro)
CCS Version: 9.0.1.00004
TM4C1294ncpdt
XDS200 USB Debug Probe
Example Code:
#include <stdint.h>
#include <math.h>
int main(void) {
double ans = 0, ang = 0.5;
ans = asin(0.5);// Works
ans = asin(ang); //Crashes
return 0;
}
Configuration:
-mfloat-abi = hard
Directories:
"${PROJECT_ROOT}"
"${CG_TOOL_INCLUDE_PATH}"
Libraries:
c
${CG_TOOL_ROOT}\arm-none-eabi\lib\hard\libm.a
Ive tried:
ang as a double, float, and int
using asinf, asinl
Using softfp and soft (with the lib appropriately changed)
If I could get any guidance on this it would be appreciated. I am fairly certain im not configuring something correctly but I have no idea what at this point in time.
Test code included for any clarification:
Thank you,
Daniel