Re: Help needed with SCI interrupts (HC12)



On Jun 28, 10:43 am, ryufr...@xxxxxxxxxxx wrote:

Please describe what you mean by crashes. For example, does it jump
to an arbitrary address outside of the program and thus trigger the
software trap debugging interrupt?


I`m sorry for my ignorance, but how can I check this?

How is it that you determine that the program has "crashed"?

What exactly do you mean by "crashed" ?

I believe SCI1 is supposed to be Interrupt Vector No. 21. But how do I
clarify that my specific interrupt is triggered by that?

- Put a breakpoint in the ISR to see if it is ever reached

- Examine memory at location 0xFF80 and you should see the vector
table. Check that the address of your handler appears at the right
location in it. (You may want to examine the linker map file too, it
shows you a lot)

.