S32K322 User Fault Exception

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K322 User Fault Exception

357 Views
Pravinkumar
Contributor I

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!

0 Kudos
1 Reply

208 Views
petrz_
NXP Employee
NXP Employee

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.

0 Kudos