S32K322 User Fault Exception

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K322 User Fault Exception

541件の閲覧回数
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 返信

392件の閲覧回数
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 件の賞賛
返信