EmbeddedRelated.com
Forums

MPLAB Watch Window (missing ADD SYMBOL button)

Started by r p June 23, 2008

I am trying to ADD SYMBOL in a watch window and the button is not active. It is only allowing SFR addition. Any clues.

I know this is going to be simple but I can't remember how to get it to recognize symbols.

Thanks in advance
Richard
Richard,

I had the same problem all day today, and just figured out the answer myself. Actually, it is because of your post showing up on google that I joined Piclist and this site. Anyway, the answer is how you define your variables, instead of using CBLOCK or EQU, use UDATA and the RES commands:

udata
var1 RES 1 ;reserve 1 byte of memory
var2 RES 2 ;reserve 2 bytes of memory

and so on, examples are given in the MPASM assembler help. Also make sure to have a space or tab before your variable name (I am new to MPLAB so I make this mistake all the time).

Hope this helps!

Nick

>�
>I am trying to ADD SYMBOL in a watch window and the button is not active. It is only allowing SFR addition. Any clues.
>�
>I know this is going to be simple but I can't remember how to get it to recognize symbols.
>�
>Thanks in advance
>Richard
>�
>
>

Thanks, I found it a couple of hours later. I think I also had to modify the linker script.

Richard

--- On Wed, 8/27/08, n...@gmail.com wrote:

> From: n...@gmail.com
> Subject: [piclist] Re: MPLAB Watch Window (missing ADD SYMBOL button)
> To: p...
> Date: Wednesday, August 27, 2008, 10:05 PM
> Richard,
>
> I had the same problem all day today, and just figured out
> the answer myself. Actually, it is because of your post
> showing up on google that I joined Piclist and this site.
> Anyway, the answer is how you define your variables, instead
> of using CBLOCK or EQU, use UDATA and the RES commands:
>
> udata
> var1 RES 1 ;reserve 1 byte of memory
> var2 RES 2 ;reserve 2 bytes of memory
>
> and so on, examples are given in the MPASM assembler help.
> Also make sure to have a space or tab before your variable
> name (I am new to MPLAB so I make this mistake all the
> time).
>
> Hope this helps!
>
> Nick
>
>
>
> >�
> >I am trying to ADD SYMBOL in a watch window and the
> button is not active. It is only allowing SFR addition. Any
> clues.
> >�
> >I know this is going to be simple but I can't
> remember how to get it to recognize symbols.
> >�
> >Thanks in advance
> >Richard
> >�
> >
> >
>
>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow
> the instructions