Re: Help needed with SCI interrupts (HC12)
- From: ryufrank@xxxxxxxxxxx
- Date: Thu, 28 Jun 2007 09:49:33 -0700
On Jun 28, 4:54 pm, cs_post...@xxxxxxxxxxx wrote:
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" ?
When the board reaches the point to call the SCI1in function to read
in data over the RS232 link, any further functions taking place at
that time freeze (Ethernet protocols` initialization etc).
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
I tried to set various checkpoint to see where the code reaches... and
the ISR doesn`t appear to be called
- 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)
In the linker map file i found that my interrupt is on the wrong
address i think.
Name Addr hSize dSize Ref Section
SCI1Interrupt 506D 5 5 1 NON_BANKED
From the MC9S12NE64`s datasheets:
Vector No Vector Address Name Source
21 $FFD4, $FFD5 Vsci1 SCI1
This is getting more confusing to me minute by minute :/
Thanks again for your help
.
- Follow-Ups:
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- References:
- Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Help needed with SCI interrupts (HC12)
- Prev by Date: Re: BASCOM for AVR?
- Next by Date: Re: hc12 sci PROBLEM
- Previous by thread: Re: Help needed with SCI interrupts (HC12)
- Next by thread: Re: Help needed with SCI interrupts (HC12)
- Index(es):