S32K322 User Fault Exception

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K322 User Fault Exception

371 次查看
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 项奖励
回复
1 回复

222 次查看
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 项奖励
回复