??? 03/31/08 19:48 Read: times |
#152780 - Heartbeat? Responding to: ???'s previous message |
Initially, Matthew Barlage said:
I have checked the supervisior functions, but they do not seem to be casuing it.
http://www.8052.com/forum/read.phtml?id=152771 Having now found the issue, Matthew Barlage said:
Because I am never returning to main(), my heart_beat counter is never resetting back to 0. When it counts up and rolls over it resets my device.
http://www.8052.com/forum/read.phtml?id=152778 Just to clarify, is this "heartbeat" distinct from the "supervisior functions", or was it just that you didn't spot it initially? Is the "heartbeat" intended to reset the device, or was that a bug? It's always a good idea for "supervisory" funtions like this to have some way to record when they've caused a reset, and why. eg, set aside some area of memory to record such events (of course, you have to ensure that the startup code doesn't clear this area!) |
Topic | Author | Date |
Device resetting issue | 01/01/70 00:00 | |
Overwriting memory? Bad program? | 01/01/70 00:00 | |
Language? | 01/01/70 00:00 | |
Found issue, but why? | 01/01/70 00:00 | |
Hard to anwser | 01/01/70 00:00 | |
also needed to answer | 01/01/70 00:00 | |
also needed to answer | 01/01/70 00:00 | |
Heartbeat? | 01/01/70 00:00 | |
heart_beat | 01/01/70 00:00 | |
OK, but that doesn't answer the question... | 01/01/70 00:00 | |
No it shouldn't | 01/01/70 00:00 | |
JTAG? | 01/01/70 00:00 | |
JTAG | 01/01/70 00:00 | |
Showtime!![]() | 01/01/70 00:00 |