Searching \ for 'no simulation in mplab 4.0' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'no simulation in mplab 4.0'.

Truncated match.
PICList Thread
'no simulation in mplab 4.0'
1999\04\28@134608 by Sebastián Dols

flavicon
face
I am triying to simulate a *.asm (16f84) file but when I press F7, nothing
happens. The project is created and correctly built, no errors, no warnigns,
all green. But in the program memory window only appears 'addlw 0xff'.
Someone knows what i am doing or configuring wrong?

in the list file:

MEMORY USAGE MAP ('X' = Used,  '-' = Unused)

All other memory blocks unused.

Program Memory Words Used:     0
Program Memory Words Free:  1024


Errors   :     0
Warnings :     0 reported,     0 suppressed
Messages :     0 reported,     0 suppressed

1999\04\28@135248 by jamesp

picon face
Are you simulating with the correct processor chosen?
Also, do you have the correct memory starting address chosen?
I've been bitten by these two caveats several times.

                                      Regards,

                                        Jim

{Quote hidden}

1999\04\29@042315 by Benjamin Petersen

flavicon
face
> in the list file:
>
> MEMORY USAGE MAP ('X' = Used,  '-' = Unused)
>
> All other memory blocks unused.
>
> Program Memory Words Used:     0
> Program Memory Words Free:  1024

It seems to me (without knowing) that not even a single instructions has
been loaded into the SIM.
So try to import your source/hex/whatever file.

The :
> Program Memory Words Used:     0
surly states that no program memory is used. I know this wasn't much help,
and you probably already knew that.

Regards
Benjamin Petersen

1999\04\29@071324 by Quentin

flavicon
face
Benjamin Petersen wrote:

> > Program Memory Words Used:     0
> > Program Memory Words Free:  1024
>
> It seems to me (without knowing) that not even a single instructions has
> been loaded into the SIM.
> So try to import your source/hex/whatever file.
>
Agree. Also how do you build your project? Do you use MPASM standalone
or MPASM via MPLAB?

Learn how to build a Project. If you know how to do that from the start
you will find it will help a lot later. And as far as I remember, MPSIM
needs to know where your COD, LST and HEX files are that were created
when you build. Project function will take care of all that for you. You
can also set up Project that it must build and run in Sim mode instead
of Edit mode.

There is a good tutorial on building a Project on the MPLAB web page.

Quentin

1999\04\29@075855 by Windows-1252?Q?Sebasti=E1n_Dols?=

flavicon
face
>>>Benjamin Petersen wrote:

>> > Program Memory Words Used:     0
>> > Program Memory Words Free:  1024
>>
>> It seems to me (without knowing) that not even a single instructions has
>> been loaded into the SIM.
>> So try to import your source/hex/whatever file.
>>
>Agree. Also how do you build your project? Do you use MPASM standalone
>or MPASM via MPLAB?

As I said in the initial mail subject, I use mplab 4.00.14 with picstart+
v1.50.15 firmware (info from the 'about' window). I suppose that this is
your question to 'MPASM(win) via MPLAB'. Mplab is configured to use mpasmwin
in window mode (and all status bar finishes green in mpasmwin).

>Learn how to build a Project.

File->new file->edit 'name.asm', then Project->new project-> 'name.pjt'
project->(mplab creates name.hex and a windows opens)->node properties
(verify properties, tabs, hex format, etc)->add node->add the file named
'name.asm'->verify is added->press ok.

>If you know how to do that from the start
>you will find it will help a lot later. And as far as I remember, MPSIM
>needs to know where your COD, LST and HEX files are that were created
>when you build. Project function will take care of all that for you. You
>can also set up Project that it must build and run in Sim mode instead
>of Edit mode.

That was the first thing I tried, and there was where I selected 16f84 as a
processor too. BTW, other previous projects were traced with no problem.
Include name files in this problem-project are verified, and the -errorlevel
line is commented with a big ;

>There is a good tutorial on building a Project on the MPLAB web page.

Yes, and in printed form in the box of my Picstart+, but with no clues about
how to avoid this behavior...

>Quentin

Sebastian

1999\04\29@110602 by Darrel Johansen

picon face
    Sebastian wrote
    >>>Benjamin Petersen wrote:

    >> > Program Memory Words Used:     0
    >> > Program Memory Words Free:  1024

    The problem is not with simulation.  Do you have an "end" directive at
    a wrong place in your source code?  Do you actually have instructions
    to assemble?  Have you set ORG?  It defaults to 0000, but if set out
    of memory range, might cause weirdness.

    Can you assemble the sample file?

    I am interested because we haven't seen too many problems with MPLAB
    4.00.14 and are getting ready to release the production version v4.10
    with MPLAB-ICD.

    Darrel

1999\04\29@114947 by Quentin

flavicon
face
Hmm, you got me. Looks to me you do everything right.
Maybe something went missing in your command line. Here is mine (from
the build complete window) for you to compare.

Command line: "C:\MPLAB\MPASMWIN.EXE /e+ /l+ /x- /w0 /c+ /m+ /rhex
/p12C508 /q C:\MPLAB\PROJECTS\NAME.ASM

In your build window. Does it show how many line were build?

If I can take a guess at it, I would guess MPLAB is trying to build from
a ASM file that has no data. Have you checked if your directories are
correct? Maybe MPLAB is building from another ASM by the same name (It
can happen, hehe).

Quentin

1999\04\29@172334 by Peter van Hoof

flavicon
face
one of the things i noticed that 's strange is that in the file register
window in the simulator (16f84) i cannot watch the second bank of ram ....
0x40 and beyond

Peter van Hoof

{Original Message removed}

1999\04\29@182219 by Darrel Johansen

picon face
    Peter van Hoof write:

    > one of the things i noticed that's strange is that in the file
    > register window in the simulator (16f84) i cannot watch the second
    > bank of ram .... 0x40 and beyond

    The only general purpose RAM in the 16F84 is from 0x0C-0x4F.  Any
    access to RAM from 0x8C-0XCF (bank 1) will be reflected in bank 0.  We
    didn't bother to show both areas in the File Register window because
    they are redundant.

    Darrel

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...