Well, I solved the problem. For some reason I had wrong values for the AIC_ defines. No idea where I got them from but now with the correct ones it is working...
Hi, I need to write to flash from my application, so I have made the required functions to execute in RAM and I also disabled the interrupts before trying to...
Hi, I need to run two lines of critical code. What's the inline code to disable global interrupt and enable interrupt surrounding my two lines of code? Thanks...
The Windows version of the GNUARM toolchain for the ARM has been updated to 4.0. You can download the source and binary files at http://www.gnuarm.com...
Very relevant question, yes! Should this stuff be done in a GDB ini-file, or might it as well be entered from the C-startuproutine??? (or both ways apply??) Is...
I am trying to get the AT91SAM7S-RealTimeTimer-IAR4_11A-1_0 project working. I added a flash mode that uses the include in resource different macro and linker...
I need to help with AT91SAM7S64. I already have winarm tool, but there is no header and linker files for SAM7S64. My second problem is, that I don't know, how...
Hi I have problems finding a cheap source for AT91SAM7S128/256 controllers. Actually I have problems finding a source at all ... It seems the part's aren't...
... controllers. Actually I have problems finding a source at all ... It seems the part's aren't available yet ... ... availalbe yet I would be satisfied with...
Would this work too?::: void main (void) { unsigned int mask; //disable interrupts mask = AT91C_BASE_AIC->AIC_IMR; AT91C_BASE_AIC->AIC_IDCR = 0xFFFFFFFF; ...
That approach tends to be the cause of spurious interrupts. If an interrupt occurs just before the AIC is disabled but not processed until just afterwards, you...
There is interest!:-) (In the past, I've always used the Atmel-supplied assembly wrappers for ISRs - No such thing yet for SAM7S, and I would anyway want to...
I've uploaded "armISR.zip" to the files section. It provides a number of routines for handing IRQ &/or FIQ (enable, disable, & restore). It also contains ISR...
Has any one used the bown out Interrupt on the At91SAM7S64? I want to know how much time I have on the interrupt, is there enough to write 5 bytes to an SPI...
Hello, After running my code in RAM debugger for nearly 6 hours it hung. I hit stop and it was stuck on the undefined instruction 0x04 infinite loop. Is this...
You need to have reasonable exception traps in place. When you get a trap, you can inspect the lr register to see where the exception occurred. Undefined...
We get the debugger to break in all the traps and then do a call dump to see where we were when things went wrong... Usually gives you a starting point... ... ...
Andrew If you can, check the LR )link register) to determine what code was running when the undefined instruction trap was hit. It may help or it may be in...
... That's going to depend on a lot of things (unless the AT91s have a hold up cap I missed). How long does your hold up supply last from brownout until the...
I am able to run my code from flash on the eval board, but now I am trying to run it from Flash. With the debugger, i do the initreset, then it come back on...
Hi Andrew, Sounds like your remapping goes haywire. The Debugger needs to Reset after Flashing, and for some reason your Reset Vector at 0x0000 isn't there. My...
I want to communicate with a SPI serial flash. I've seen enough code to initialize the SPI port. However, I can't find any sample code that will show me how to...
I normally take the weasle approach with SPI and bit-bang it using GPIO routines. If you're just doing relatively infrequent communications to SEEPROMS etc...
hi u all i m having problem here that whether I2C standard support 89C52 or not or in the other meanings that 89C52 does not ocntain SDA line.. althoug getting...
Using the SPI is straight forward. Here is a sample of my init code and my read/write code. You have to write 0xFF in order to Read. Init: I am using the CSAAT...
Thanks Kris... I found the problem.. The manufacturing people actually put at91sam7s128 chips on the board and didn't tell me.. Once I changed the linker and...