Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Discussion Groups

Discussion Groups | Piclist | mplab sim wierdness

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

mplab sim wierdness - Phil - Sep 29 19:30:00 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





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: mplab sim wierdness - Peter van Hoof - Sep 30 14:12:00 2004

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
_______________________________





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: mplab sim wierdness - Allan Lane - Oct 14 14:48:00 2004


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





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )