This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IWDG timeout & register rump

Hi, I'm developing a piece of kit using an STM32F207, and running the RL-RTX. I'm using the IWDG as I develope the F/W further. I perform daily/nightly soak tests on blasting data packets through the device and most of the time everything's tickety-boo. However, occasionally, just occasionally I get a reset caused by an IWDG timeout. I know this because I test for it on a reset, and count them.

Clearly this is unacceptable. So I'd like to capture the stack pointers before the device performs the IWDG reset (so that I have an idea where it's falling over). I was thinking that I might be able to read the MSP/PSP registers at the point where the "Reset_Handler" starts, but I'm not sure this will work as they may be cleared by the silicon at the point of reset. Also I'd have to store the captured values to somewhere safe like the RTC backup registers.

Remember, an IWG performs a reset on timeout. Nothing more.

Has anyone out there also wanted to do this ?
Did they have a cunning plan ?
...and an even more cunning solution ?

All pointers, help, comments, are most welcome.

Best, Rich.

0