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?
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
Never mind. It seems I needed a .thumb_func directive at my ISR.
Tim
Hi Timothy,
So does your problem been solved by add a .thumb_func directive at your ISR ?
BR
Alice
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