problems with interrupts while debugging

Started by tseug_76 July 13, 2006
Hi all,

i work with AT91SAM7S256 and IAR since 2 months. I had the problem
that after correct (i think so) configuration of interrupt and
debugging mode i catch sometimes the interrupt and sometimes i got
nothing. I set an breakpoint in ISR, but frequently nothing happens in
spite of high on IRQ Input pin. After disconection of all hardware and
new loading somtimes i got the interrupt. I tested it also with a low
frequently input signal. If i chatch one Interrupt after new loading
in RAM then i chatch all interrupts. If i chatch no interrupt after
new loading ich chatch none.
Any ideas?
I thing there must something fixed in IAR-Studio options.

my configuration

// AT91F_AIC_ConfigureIt (
// AT91C_BASE_AIC,
// AT91C_ID_IRQ0,
// IRQ0_INTERRUPT_LEVEL,
// AT91C_AIC_SRCTYPE_POSITIVE_EDGE,
// at91_IRQ0_handler
// );

Input high is 3,3V
Tim

Just to inform those who are interested in this problem's solution:

We solved this issue. The trick was, that not acknoledged interrupts may block new ones that occur after chip reset and reinitialisation.

Just add

__writeMemory32(0xffffffff,0xFFFFF130,"Memory"); //Set (AIC) End of Interrupt Command Register

to your IAR macro file within section AIC(). This will clear unaknowledged irqs when restarting debug session.

Tobias

----- Original Message -----
From: tseug_76
To: A...
Sent: Thursday, July 13, 2006 10:17 AM
Subject: [AT91SAM] problems with interrupts while debugging
Hi all,

i work with AT91SAM7S256 and IAR since 2 months. I had the problem
that after correct (i think so) configuration of interrupt and
debugging mode i catch sometimes the interrupt and sometimes i got
nothing. I set an breakpoint in ISR, but frequently nothing happens in
spite of high on IRQ Input pin. After disconection of all hardware and
new loading somtimes i got the interrupt. I tested it also with a low
frequently input signal. If i chatch one Interrupt after new loading
in RAM then i chatch all interrupts. If i chatch no interrupt after
new loading ich chatch none.
Any ideas?
I thing there must something fixed in IAR-Studio options.

my configuration

// AT91F_AIC_ConfigureIt (
// AT91C_BASE_AIC,
// AT91C_ID_IRQ0,
// IRQ0_INTERRUPT_LEVEL,
// AT91C_AIC_SRCTYPE_POSITIVE_EDGE,
// at91_IRQ0_handler
// );

Input high is 3,3V

Tim
Hi there

Does anyone have an idea of how much faster a AT91SAM9260 (running out
of SDRAM) would be vs a AT91SAM7X256 (running out of flash). Assume both
are running at the maximum speed.

I know the speed difference may depend on many things - I'm just after a
rough idea.

regards
Peter