Program crashes in isr

cancel
Showing results for 
Search instead for 
Did you mean: 

Program crashes in isr

202 Views
Contributor I

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?

0 Kudos
4 Replies

5 Views
NXP TechSupport
NXP TechSupport

Hello Timothy,

Which version of CW do you used ?

Could you please share a same project to me , I will check it on my side , thanks!

BR

Alice

0 Kudos

5 Views
Contributor I

Never mind.  It seems I needed a .thumb_func directive at my ISR.

Tim

0 Kudos

5 Views
NXP TechSupport
NXP TechSupport

Hi Timothy,

So does your problem been solved by add a .thumb_func directive at your ISR ?

BR

Alice

0 Kudos

5 Views
Contributor I

Alice, thank you for your reply.

I am using Codewarrior for MCU version 10.7 evaluation version.

How do I share a project?  Do I attach files to my reply?

Tim

0 Kudos