Hello All,
I am facing a wierd issue while using logf in S32k3 SOC.
For the below code:
1. float logIndex = 1.2f;
2. static float testLog;
3. testLog = logf(1.2f);
4. testLog = logf(logIndex);
Executing step 3 works fine but as soon as processor tries to execute step 4, I get hard fault.
Can you please suggest what the potential cause could be?
Solved! Go to Solution.
Hello,
I found the issue with the project. Our project is cmake and was using a different library as compared to the one used by S32DS.
Many thanks for the help
Hello Daniel,
I am using compile NXP/S32DS.3.4/S32DS/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi
and the library integrated is /arm-none-eabi/lib/arm/v5te/hard/libm.a
Regards,
Hemant Kapoor
Hello @HemantK,
Thank you for the information.
I'm not able to replicate the issue on my side.
Can you share a test project with this error?
Regadrs,
Daniel
Hello,
I found the issue with the project. Our project is cmake and was using a different library as compared to the one used by S32DS.
Many thanks for the help