Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/19/07 15:31
Read: times


 
#147190 - stack overflow check
Responding to: ???'s previous message
Attila Strba said:
I am having a strange problem - it seems something with the UART interrupt. Simple when returning from the UART interrupt vector in one specific moment it seems the PC is not set to the adress where the program was interrupted. As I said it seems because I can't realy verify it though using C (if you had any idea how to check this please tell me).

Well, not in a simple way, but if you are persevere enough, look at the disassembly/asm...

You can do one thing, though: check SP at the beginning of the highest priority interrupt (or, better at the beginning of ALL interrupts). You shall be able to check the depth of stack needed for execution of that particular ISR - you do keep them short and simple don't you... :-)

JW


List of 6 messages in thread
TopicAuthorDate
Stack overflow checking method            01/01/70 00:00      
   stack overflow check            01/01/70 00:00      
      KISS - would be nice to have but..            01/01/70 00:00      
         long interrupts are not taboo...            01/01/70 00:00      
   stack overflow            01/01/70 00:00      
      Problem found no stack overflow ...            01/01/70 00:00      

Back to Subject List