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();
}
}
Regards,
Dinesh
Thanks daniel I will try this & update :--
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
Regards,
Dinesh
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