Quantcast
Viewing all articles
Browse latest Browse all 40

Re: Help!! IOPWR reset, unknown cause. (Jack0Parks)

NKurzman
All interrupts have the auto_psv enabled and don't share in an unsafe way variables with the mainloop.
 
are you changing the PSV?  If not you can leave it to Off.
Stack Overflow? 
"unsafe"  careful here the compiler uses 3 instruction to inc a byte.
 




Nope, not changing the PSV. But not sure if compiler does it behind the scenes. 
 
Checked for stack overflow, but I do not get the trap for that. If it was a stack overflow I should get an stack trap, not address trap, right?
 
thanks for the heads up about the inc. sharing variables are only done in the atomic way.
 
>> The devices are running several days now, not any problem happened. So I think it is safe to assume something goes wrong with the interrupt / mainloop. I will try to increment the number of interrupts per sec. and see if I can get the error faster. Also today equipped with realice. Hope to get last return / calls trace.

Viewing all articles
Browse latest Browse all 40

Trending Articles