mplab sim wierdness

Started by Phil September 29, 2004
Has anyone ever seen this? I'm using mplab 6.30 and the mplab
simulator. I have a number of memory locations in the watch fine and
they aren't getting updated. I can step over a movwf foo and w will
have some value but foo only shows 0. Looking at the file registers
shows the location of foo shows 0 also but when I step over movfw foo,
w gets the correct value even though foo still shows 0.

I tried restarting mplab, rebuilding the project, deleting the watch
item and re-adding it. nothing seems to work. this is sure making
the simulator useless.

Phil



I have tried this with mplab version 6.62 and can not
confirm this happens in this version.

The only way this appears to happen if I wipe memory
with debugger,clear memory,all memory after which the
program still appears to be there (the cursor still
points to instructions in the assembler text window)
but the program memory is wiped and only contains
addlw 0xff instructions.

I did not try version 6.30.

Peter --- Phil <> wrote:

> Has anyone ever seen this? I'm using mplab 6.30 and
> the mplab
> simulator. I have a number of memory locations in
> the watch fine and
> they aren't getting updated. I can step over a
> movwf foo and w will
> have some value but foo only shows 0. Looking at
> the file registers
> shows the location of foo shows 0 also but when I
> step over movfw foo,
> w gets the correct value even though foo still shows
> 0.
>
> I tried restarting mplab, rebuilding the project,
> deleting the watch
> item and re-adding it. nothing seems to work. this
> is sure making
> the simulator useless.
>
> Phil

_______________________________




Yeah, I've seen something like this.

It happened because I was in the 'wrong' memory
page, so the 'W' register read a 'foo' that I wasn't
watching. Could that be happening here?

--- In , "Phil" <phil1960us@y...> wrote:
> Has anyone ever seen this? I'm using mplab 6.30 and the mplab
> simulator. I have a number of memory locations in the watch fine
and
> they aren't getting updated. I can step over a movwf foo and w will
> have some value but foo only shows 0. Looking at the file registers
> shows the location of foo shows 0 also but when I step over movfw
foo,
> w gets the correct value even though foo still shows 0.
>
> I tried restarting mplab, rebuilding the project, deleting the watch
> item and re-adding it. nothing seems to work. this is sure making
> the simulator useless.
>
> Phil