cancel
Showing results for 
Search instead for 
Did you mean: 

Timer0 interrupt problems

reg007
Associate II
Posted on October 05, 2005 at 04:23

Timer0 interrupt problems

8 REPLIES 8
reg007
Associate II
Posted on September 27, 2005 at 06:16

Hi all.

I am new on the STR710, and i work with the MB393B Eval Board, with a STR710FZ2T6.

I am trying to enable the TOF and OC Interrupt for Timer0.

Everything works fine. Both Interrupts occurs, and the EIC_IPR Bits are set.

But the matching interrupt handler are not executed. :-[

Has anyone any idea?

Thx for help.

[ This message was edited by: re-G on 27-09-2005 12:51 ]

reg007
Associate II
Posted on September 27, 2005 at 11:43

Code:

u16 init_interrupt(void)

{

EIC_INIT();

EIC_IRQChannelPriorityConfig(T0TOI_IRQChannel,1);

EIC_IRQChannelPriorityConfig(T0OC1_IRQChannel,2);

EIC_IRQChannelConfig(T0TOI_IRQChannel, ENABLE);

EIC_IRQChannelConfig(T0OC1_IRQChannel, ENABLE);

EIC_IRQConfig(ENABLE);

return 1;

}

This is my Interrupt init funktion.

I used the other Channels, but i think this should work.

I also tried to enable the channels befor setting the Priority but it had no effekt.

reg007
Associate II
Posted on September 27, 2005 at 12:08

I changed my init funktion to

Code:

u16 init_interrupt(void) <BR>{ <BR> EIC_IRQChannelConfig(T0TIMI_IRQChannel, ENABLE); <BR> EIC_IRQChannelPriorityConfig(T0TIMI_IRQChannel,1); <BR> EIC_IRQConfig(ENABLE); <BR> return 1; <BR>} <BR>

but still no effekt.

[ This message was edited by: re-G on 27-09-2005 15:39 ]

reg007
Associate II
Posted on September 27, 2005 at 14:13

Hi.

I'm not sure.

What can i do to find it out?

[ This message was edited by: re-G on 27-09-2005 17:44 ]

reg007
Associate II
Posted on September 28, 2005 at 05:07

Hi.

My Tool-set is the RealView Debugger v1.7.

Connecting over the RealView ICE Micro Edition.

The Board is the MB393B STR710 Eval Board

Boot pin setting is ''USER-mode Flash mapped at 0h'' (BOOTEN 1-2)

BOOTCR says 0xXXX0 -> FLASH

reg007
Associate II
Posted on September 28, 2005 at 08:00

Here you are.

reg007
Associate II
Posted on September 28, 2005 at 10:13

Hi.

I use the STR710 library and in the 71x_init.s both GBLL remapping and GBLL remap_ram are commented.

......

.

.

.

I think i've solved the problem.

My entry was ''__main''. I've changed this to ''Reset_Handler'' as i saw it in an example Project, and the Interrupts occurs correctly.

But i still do not know why this was the reason.

can you give me a piece of advice, please?

Regards

[ This message was edited by: re-G on 28-09-2005 14:53 ]

reg007
Associate II
Posted on October 05, 2005 at 04:23

Ahhh, I see.

Thank you very much for help.