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

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

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

2,404 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

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

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