S32K144 : DefaultISR startupfile: function written in C-routine :

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

S32K144 : DefaultISR startupfile: function written in C-routine :

2,038 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Hi NXP team,

I have written a S32K144, DefaultISR function written in C-routine.
But this code is no getting hit,  still execution goes to Assembly function..

/* The prototype shows it is a naked function - in effect this is just an
assembly function. */
static void DefaultISR( void ) __attribute__( ( naked ) );
/* The default handler implementation */
static void DefaultISR(void)
{
  NOP();
  while(1)
  {
    NOP();
  }

}
Now DefaultISR is defines as weak function in  startup file, but still execution goes to  Assembly function.

How to override DefaultISR funtion in assembly file ?

Please suggest.

Regards,

Dinesh

Labels (1)
0 Kudos
2 Replies

2,004 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Thanks daniel I will try this & update :--
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

Regards,

Dinesh

0 Kudos

2,009 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Dinesh,

As we discussed, I don't think you need this Default ISR.

Just implement handlers for interrupts/exceptions that are enabled by default like the HardFault handler.

Then, only the interrupts enabled in NVIC can be called and you should have handlers implemented for those interrupts.

 

Regards,

Daniel

0 Kudos