**** BEGIN LOGGING AT Wed Feb 21 02:59:57 2007 Feb 21 11:40:01 hi together Feb 21 11:40:19 vmaster: i debugged the registers Feb 21 11:41:04 and found following: SYS Interrupt is pending, Interrupt Mask enables the SYS Interrupt, in the Interrupt Vector is the adress of the ASM Handler function Feb 21 11:41:25 but it won't serviced Feb 21 11:41:46 is there a global interrupt enable flag? i haven't found someting about that in the manual Feb 21 11:54:05 did you enable interrupts in the CPSR? Feb 21 11:54:33 the I and F bits are used to mask out interrupts and fiqs Feb 21 11:55:01 I'll check it, but should AICEnableI Feb 21 11:55:08 sorry, incomplete line ^^ Feb 21 11:55:32 AT91F_AIC_EnableIt() done this for me ? Feb 21 11:55:38 but i check the flags right now Feb 21 11:56:22 gotta get lunch, i'll be back in 15 minutes Feb 21 11:56:37 ok, "Guten Appetit" Feb 21 12:10:08 vmaster: CPSR: 0x000000df Feb 21 12:10:19 so: I_Bit is not set (Ibit= 0x20) Feb 21 12:12:31 mhh, isn't I 0x80 and F 0x40? 0x20 is the T-Bit indicating Thumb Feb 21 12:14:34 your right Feb 21 12:14:47 my fault Feb 21 12:14:53 then thats the problem Feb 21 12:15:09 I 0x80, F 0x40, T 0x20 Feb 21 12:19:19 vmaster: i'm a little bit confused today :-( Feb 21 12:44:12 vmaster: Do I have to clear the I_BIT manually? at my Startup? Feb 21 12:44:21 then my interrupts will work? Feb 21 12:44:28 Or am I wrong? Feb 21 12:45:11 you should clear it once the interrupt source and the interrupt controller are set up Feb 21 12:45:23 isn't there example code from Atmel showing how to use their ROM services? Feb 21 12:45:42 yes, but i looked, and haven't found where they clear the bit Feb 21 12:52:37 ok, in: AT91RM9200-BasicROM_Services-ARM1_2-2_0.zip/AT91RM9200-BasicROM_Services/compil/cstartup_ads.s at the end of the stack setup the code switches to SYSTEM mode with only the F bit set Feb 21 12:53:55 I looked for clearing the bit Feb 21 12:54:03 you're right Feb 21 12:56:57 i did so too, but CPSR 0x200000db Feb 21 12:57:26 so bit 0x80 is set Feb 21 12:57:51 i'll paste my startup.s Feb 21 12:59:02 http://pastebin.ca/366033 **** ENDING LOGGING AT Thu Feb 22 02:59:58 2007