Hard Fault Error while running accelerometer with I2C communication & Interrupt in S32K344

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

Hard Fault Error while running accelerometer with I2C communication & Interrupt in S32K344

323 Views
tyagi_space
Contributor I

HardFault_Handler() at exceptions.c:97 0x40422e

Unable to Init function. Every time this error is coming.

Tags (1)
0 Kudos
Reply
1 Reply

298 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @tyagi_space,

Is it the LPI2C Init funciton?

If so, is the LPI2C clock enabled?

 

MC_ME module

PRTN1_COFB2_STAT register

BLOCK86 This bit provides the clock status of LPSPI 0 in partition 1

BLOCK85 This bit provides the clock status of LPI2C 1 in partition 1

 

Thanks,

Daniel

0 Kudos
Reply