Other Parts Discussed in Thread: MSP-FET
Tool/software:
I've got a system issue that I'm trying to debug, but having issues figuring out how it's getting into the state in which we see the failure. I have an interrupt, set to the highest priority, but as far as I can tell, it will miss the interrupt randomly - I have a "debounce" that checks if the line is still high and I set a flag if it's not. So I've found a means for catching WHEN it happens, but, as far as I know, there's no reason it SHOULD be happening.
In the past I've used a logic analyzer to see what memory addresses were running just before the failure, but I don't believe the MSP-FET has that feature. I tried following the stack pointer back through the stack, but it doesn't seem to make sense. Is there any way to look 'into the past' and see where the code jumped into the interrupt FROM... see what lines were running just before the interrupt triggered? Again, it's very random, so I haven't found a breakpoint in the normal operating code that will only stop when the failure occurs, rather than during every normal operation.
TIA
Justin