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

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

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

2,313件の閲覧回数
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,279件の閲覧回数
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,284件の閲覧回数
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 件の賞賛
返信