Hi ya all.
I’ve got a mkrwan1310 running a weather station which every now and then just stops and this week I almost figured it out. I was running it on a jlink debug tool when it suddenly jumped into dummy_handler but before I realised what it had done, I’d clicked again and reset everything. aarrgghh. However, it made me look at the ISR routines and their use of dummy_handler.
If I read the code correctly, for all the cortex handlers there is a link to dummy_handler that just sits there, and because it is in a ISr already, it would explain why my wdt hander fails to call.
My question is two fold.
Does anyone know of a resource anywhere that can help me understand the handlers better. I get the concept, I’m even using a few of them eg: rtc & wdt, but looking in cortex.c there are loads and some are obvious, some less so?
Secondly, I was thinking (dangerous I know) that I write a new dummy handler that rather than sits in the ISR forever, Sets a flag and drops out, allowing me to capture some info and for the wdt to kick in and reset everything. What info can I capture (in windows you can write the stack to file, is there anything similar? & how do I do it? I’d write the data to the serial flash to retrieve it later, its knowing what info I can find to write to it?
thanks for reading and look forward to your thoughts.