SPI Interrupts - some interesting behaviour...

Started by Phil in AT91SAM ARM10 years ago

Hi All, I am using the AT91SAM7S with IAR EWB. There seems to be some issues with the clearing of interrupts when using the SPI peripheral in...

Hi All, I am using the AT91SAM7S with IAR EWB. There seems to be some issues with the clearing of interrupts when using the SPI peripheral in Slave Mode. Using the other peripherals like UART and Timer/Counters the interrupts work as expected. However when Enabling the interrupts for the SPI (I am trying to catch RDRF and NSSR), I only ever get one call to the ISR and that is all. ...


AT91SAM7x256 Interrupts

Started by boerrick in AT91SAM ARM10 years ago 3 replies

I'm using the AT91SAM7X256 on the AT91SAM7x-EK evaluation board. I can run my code on the microcontroller (leds, joystick, uart) and now I...

I'm using the AT91SAM7X256 on the AT91SAM7x-EK evaluation board. I can run my code on the microcontroller (leds, joystick, uart) and now I try to use interrupts. Has anybody a startup file (in assembler for GNU compiler) for the AT91SAM7x256 with the use of interrupts?? I've made my own crt.s but it is not working, why, I have no idea!


Interrupts not firing

Started by jellybean10025 in AT91SAM ARM10 years ago 14 replies

I have a strange situation. I am using timer0 on a 50 mS cycle to fire an interrupt. It works for hours, days, or weeks then the interrupt...

I have a strange situation. I am using timer0 on a 50 mS cycle to fire an interrupt. It works for hours, days, or weeks then the interrupt code stops being executed. My first thoughts were a loop or that somehow the interrupts were being disabled. I happened to catch the situation in the debugger yesterday and now I'm truly baffled. It's not in a loop and the interrupts are enable...


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM10 years ago 3 replies

> Ok! I've made the changes. So this might be the problem. The=20 > interrupts are working, but the tasks do not. What should I do next? So...

> Ok! I've made the changes. So this might be the problem. The=20 > interrupts are working, but the tasks do not. What should I do next? So the tick interrupt now runs. Are you still installing other interrupts? If you have just the tick interrupt running, do the flash tasks now execute= ? Can you place a break point in the flash task to be double sure it is not running. Regards, Rich


Interrupts (AT91SAM9261 + GHS MULTI for ARM)

Started by senthil kumar in AT91SAM ARM8 years ago

Hi, ?? We are using SAM9261 and GHS MULTI IDE for ARM for our new project. ??????? Inputs,outputs and serial (tx/rx) were working in...

Hi, ?? We are using SAM9261 and GHS MULTI IDE for ARM for our new project. ??????? Inputs,outputs and serial (tx/rx) were working in polling method. But Interrupts were not working while using MULTI. ? ? ? ? ?? while using KEIL or IAR interrupts were working. what may be the problem? Any solution please... Regards L.Senthilkumar Add more friends to your messenger and enjoy...


arm926ejs simple interrupts

Started by kumori0 in AT91SAM ARM9 years ago 11 replies

Hello everyone, I'm a student, trying to move up from programming PIC micros to working with ARM microcontrollers. At the moment I have a...

Hello everyone, I'm a student, trying to move up from programming PIC micros to working with ARM microcontrollers. At the moment I have a lot of problems with the whole concept of interrupts in ARM. Could someone tell me where I could find a simple hello world like application that would have only the interrupt on timer0 or something like that. Thanks in advance, Jani


Timer Interrupts and Debugger

Started by dclapp01 in AT91SAM ARM12 years ago

I am having an issue using IAR EBARM 4.20A and debugging timer interrupts. I have a PIT timer going off every ms, and when I have break...

I am having an issue using IAR EBARM 4.20A and debugging timer interrupts. I have a PIT timer going off every ms, and when I have break points in my ISR everything looks fine - it breaks immediately as soon as I start running. However, when I remove the breakpoint, the interrupt does not appear to be going off. Has anyone encountered this with the IAR Debugg


USART and Interrupt nesting

Started by Eric Pasquier in AT91SAM ARM10 years ago 9 replies

I am using an AT91SAM7S256. I do have some dificulties in reading the documentation about USART and interrupts : 1) what is the difference...

I am using an AT91SAM7S256. I do have some dificulties in reading the documentation about USART and interrupts : 1) what is the difference between TXRDY and TXEMPTY interrupt/status ? 2) the documentation is very clear about nested interrupt in AIC, but not about what is happening in this case : - I have a bidirectional comunication in progress with TX and RX interrupts enabled. - RX...


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by axl_dudu in AT91SAM ARM10 years ago

I'm using the WinARM GCC. --- In A...@yahoogroups.com, "FreeRTOS.org Info" =20 wrote: > > > Hi Richard. I have tried the flash demo in...

I'm using the WinARM GCC. --- In A...@yahoogroups.com, "FreeRTOS.org Info" =20 wrote: > > > Hi Richard. I have tried the flash demo in cooperative mode but=20 it=20 > > doesn't work. I have also tried to see if there is a problem with=20 the=20 > > interrupts, and they are NOT working in cooperative mode. I don't=20 > > know why.=20 > > I haven't made any changes to the ker


USART0 Recieve Interrupt does not return.

Started by userpaul2 in AT91SAM ARM10 years ago 2 replies

When I enable a Uart recieve interrupt, it either continually interrupts, or if I clear the interrupt in the AIC with: AT91C_BASE_AIC->...

When I enable a Uart recieve interrupt, it either continually interrupts, or if I clear the interrupt in the AIC with: AT91C_BASE_AIC-> AIC_EOICR = 0; then execution hangs. Both situations prevent the running of both the program and higher priority interrupts. Does anybody know why this is? Is it because the PDC HAS to be used with UART recieve interrupt? #define BR 115200


Re: Processor wakeup time from processor idle mode

Started by bernd schuster in AT91SAM ARM10 years ago

2007/12/7, andnan : > > I want to reduce my power consumption to a minimum. If I put the > processor into idle mode, but leave the MCK...

2007/12/7, andnan : > > I want to reduce my power consumption to a minimum. If I put the > processor into idle mode, but leave the MCK chugging away, interrupts > will still happen at the MCK frequency correct? > right - all interrupts will continue Does the processor require any time to wake up (like my wife in the > morning), or is it ready to go on the next cloc


level vs. edge triggered interrupts

Started by romanua1 in AT91SAM ARM11 years ago 2 replies

Hallo everybody, In what cases should one use level and in what cases edge triggered interrupts for the internal sources? Regards, Roman

Hallo everybody, In what cases should one use level and in what cases edge triggered interrupts for the internal sources? Regards, Roman


How to create nested interrupts for the SAM7?

Started by ratb...@... in AT91SAM ARM12 years ago 3 replies

In one the posts someone wrote: \

In one the posts someone wrote: \


Re: PIT

Started by capiman26061973 in AT91SAM ARM9 years ago 1 reply

Hello, > While trying to figure out the interrupts > I encountered the following problem. > for (;;) { > if((pitGetPIIR() & 0x000FFFFF)...

Hello, > While trying to figure out the interrupts > I encountered the following problem. > for (;;) { > if((pitGetPIIR() & 0x000FFFFF) == 0){} > uart0_putc('A'); > } i must say sorry, i have don't know or used AT91 yet, just reading posts about it. So my hint could be nonsense, than just ignore me. The value you compare is a "self-resetting" hardware counter ? Could it be that y


Interrupt questions

Started by at91sam7s in AT91SAM ARM12 years ago 2 replies

If I'd used the API AT91F_AIC_ConfigureIt() to configure my interrupts, do I still need to use keywords such as __arm, __irq, and __nested? ...

If I'd used the API AT91F_AIC_ConfigureIt() to configure my interrupts, do I still need to use keywords such as __arm, __irq, and __nested? Nesting is desired. Prior to exiting all ISRs, does the following line of code need to be executed? AT91C_BASE_AIC->AIC_EOICR = 0; Thanks


AT91SAM7SE512 CDC interrupts?

Started by v333k in AT91SAM ARM9 years ago 2 replies

Hi, I would like know if the following is possible and/or doable. I am working on some code for my SAM7SE512 chip that would go into...

Hi, I would like know if the following is possible and/or doable. I am working on some code for my SAM7SE512 chip that would go into an infinite while loop. However, I would like to be able to cause an interrupt (FIQ or IRQ) when I receive something from the PC via CDC. Is this possible? If not, what would likely be my best choice. The while loop is extremely important to run infinitely. ...


AT91SAM7S64 and GCC from GNUARM

Started by Mike Wolfram in AT91SAM ARM12 years ago 3 replies

Hi, I am using the above compiler for our development. Currently I am developing on the SAM7S-EK where we changed the MCU from revision...

Hi, I am using the above compiler for our development. Currently I am developing on the SAM7S-EK where we changed the MCU from revision E to G. I run into some troubles with timer interrupts. When I setup the timer 0 interrupt the system completely hangs. When I attach the debugger the PC is somewhere in the 0xff...... region. I have checked that


Developement Tools..

Started by strong_arm7s in AT91SAM ARM12 years ago 5 replies

Hello, We are about to decide on which development tools to use. GreenHills, IAR or ARM RealView. I have tried IAR on the AT91SAM7S-EK...

Hello, We are about to decide on which development tools to use. GreenHills, IAR or ARM RealView. I have tried IAR on the AT91SAM7S-EK and it even with their patches of last week I still sometimes have interrupts not working correctly with the debugger. Oher than that I really don't have any complaints. We were given a demo of the GHS and it looks like it


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM10 years ago 1 reply

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage...

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage goes... Take a look in port.c, at the function prvSetupTimerInterrupt(). This installs a different handler depending on the pre-emption setting. The tic= k ISR is set to either vNonPreemptiveTick() or vPreemptiveTick(). None of th= e interrupt


Re: PIT

Started by ffredrik in AT91SAM ARM9 years ago

One reason could be that the {} after the if statement. This is actually a dummy statement, executed conditionally after the if. The uart...

One reason could be that the {} after the if statement. This is actually a dummy statement, executed conditionally after the if. The uart call is always executed. Fredrik ----- Original Message ---- From: kumori0 To: A...@yahoogroups.com Sent: Thursday, March 13, 2008 2:26:24 PM Subject: [AT91SAM] PIT Hello again, While trying to figure out the interrupts I e