ARM Technical Support Knowledge Articles

WATCHDOG REFRESH WHEN USING MONITOR

Applies to: MON166 Target Monitor

Answer


Information in this article applies to:


QUESTION

I would like store the Monitor-166 in an external Flash ROM. Both the Monitor and the user application is stored in this Flash ROM. I added a small software routine that allows (after processor reset) the selection application or Monitor. Unfortunately, the boot software enables the watchdog, but I know that the Monitor only works with the watchdog disabled.

Is it possible to add watchdog refresh instructions to the Monitor?

ANSWER

Yes, you may add watchdog refresh instructions to the file INST167.A66 in the functions INSTAT and OUTSTAT as shown below:

INSTAT:    BMOV   R4.0,S0RIR  ; INPUT STATUS OF SERIAL INTERFACE
           SRVWDT
           RET

OUTSTAT:   BMOV    R4.0,S0TIR ; OUTPUT STATUS OF SERIAL INTERFACE
           SRVWDT
           RET

This ensures that the watchdog gets refreshed during Monitor communication.

MORE INFORMATION

Article last edited on: 2007-01-16 12:04:26

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential