 | Discussion Forum |  |
|
|
STR912FAW44Next Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author ramazan arıkan Posted 20-Nov-2008 22:55 GMT Toolset ARM |  STR912FAW44 ramazan arıkan Hi, I am using STR9FAW44, and I get an external interrupt from WIU line 18(GPIO P6.2 pin). When CPU gets an interrupt from this pin it halts, it does not give any reaction. When I debug, it goes into interrupt routine, but when it returns from the intterrupt routine it jumps a memory address where includes some absurd things. Then it does noting. What may be the cause of this problem? | | Read-Only Author Per Westermark Posted 20-Nov-2008 23:14 GMT Toolset ARM |  RE: STR912FAW44 Per Westermark Big enough stack? | | Read-Only Author ramazan arıkan Posted 20-Nov-2008 23:34 GMT Toolset ARM |  RE: STR912FAW44 ramazan arıkan Thank you Per for your reply. The stack sizes are as follows:
UND_Stack_Size EQU 0x00000000
SVC_Stack_Size EQU 0x00000008
ABT_Stack_Size EQU 0x00000000
FIQ_Stack_Size EQU 0x00000000
IRQ_Stack_Size EQU 0x00000100
USR_Stack_Size EQU 0x00000400
ISR_Stack_Size EQU (UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + \
FIQ_Stack_Size + IRQ_Stack_Size)
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE USR_Stack_Size
__initial_sp SPACE ISR_Stack_Size
Stack_Top
;// <h> Heap Configuration
;// <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF>
;// </h>
Heap_Size EQU 0x00000000
AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
| | Read-Only Author Ramazan ARIKAN Posted 21-Nov-2008 12:20 GMT Toolset ARM |  RE: STR912FAW44 interrupt problem Ramazan ARIKAN Hi all, I can't still fix the problem. I increased stack sizes and tried again, but still problem exists. I rearrange my question and ask: I am using ST library v2.0 and I am trying get an interrupt from an external device(serocco-m serial controller). When an interrupt triggered, cpu jumps to the irq handler. Everything is normal until here, however strange things occurs when the cpu returns from IRQ handler. Some times it halts, jumps a strange address, some times it resets the whole system. best regards Ramazan Arikan, | | Read-Only Author Tamir Michael Posted 21-Nov-2008 12:33 GMT Toolset ARM |  RE: STR912FAW44 interrupt problem Tamir Michael ok. what do you do inside the ISR? maybe you are causing a stack overflow there? | | Read-Only Author Tamir Michael Posted 21-Nov-2008 12:37 GMT Toolset ARM |  RE: STR912FAW44 interrupt problem Tamir Michael when you enter your ISR, is the value of the LR register correct? | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|