AnsweredAssumed Answered

Program crashes in isr

Question asked by Timothy Phillips on Apr 17, 2017
Latest reply on Apr 20, 2017 by Alice_Yang

I am running an assembly-language program on a Kinetis KL46Z.

 

Whenever my program tries to execute an instruction in the interrupt service routine, it branches to Default_Handler().  It does not matter what instructions are in the ISR.  Even a NOP in the ISR causes a crash.  There is nothing wrong with the ISR's location in memory.  Non-ISR instructions execute properly when located at the same address.  The ISR code is preceded by an .align 2 directive just as the main routine is.

 

Why won't my ISR run?

Outcomes