Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Sim problems, AGAIN.

2004-01-02 by Larry Barello

Since you know exactly when it trips, set up the simulator to break a couple
hundred cycles prior to the fault and single step your way to bliss.
Eventually you will see the error.

-----Original Message-----
From: David VanHorn [mailto:dvanhorn@cedar.net]

>
>Include an extra instruction in the Stack_Check just to force the
simulation software to use different size of memory, etc, and see if the
problem happens again at 6513 count.


Even more fun, I put an extra NOP in the main loop, with the main routines
enabled.
What would you guess?

I start the clock at reset, and let it run till I hit panic.

Without the NOP, 55074 uS every time.
With the NOP, 34594uS every time.
Two nops, 38609, every time.

I'm not seeing a pattern here.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.