We are using S32k322 for our project. We have the SW run on Cortex M7 core with FPU usage disabled with AUTOSAR OS which will trigger Audio processing related functionality where we will use some libraries such as CMSIS and AMMCLIB.
It is building successfully using IAR compiler and when we try to debug the code it's throwing User fault exception as shown in the attachment. It's setting NOCP bit in the UFSR register. Could you please guide us to resolve this exception?
Thank you!
Hi,
all parts of your application must be compiled with the same FP settings otherwise there will be a mismatch in API calls. Hardware FP uses VFP registers to hold float arguments whereas software FP emulation puts float values into general-purpose registers. The FPU must be enabled in the CPACR register (CP10 and CP11) to avoid the NOCP exception.