Hello,
- CHIP = at91sam7s64
- BOARD = at91sam7s-ek
I'm trying to use the Periodic Interval Timer from Getting Started project:
I have isolated the problem and I see that the program freezes right after enabling interrupt for PIT:
When I remove that line of code (PIT Interrupt disabled) the program runs normally.
I have checked for the correctness of the ISR handler addresss in AIC vector
- AT91C_BASE_AIC->AIC_SVR[source]
and it matches the handler address.
I don't know why the program is freezing (the program halts and the handler is not called). I also tried editing main.c to use only PIT, and only Push Button 1; in both cases the same thing happens (i.e. nothing happens, handler is not executed).
Does anyone have a clue?
Thanks in advance
PS:
Maybe I'm running the wrong address and thus ruining the start up code (which contains initial interrupt handling codes)?
In sram.lds we have the code
- sram (W!RX) : ORIGIN = 0x202000, LENGTH = 0x4000
so in SAM-BA, after loading the program, I make
Is that the correct address to go to?