MPLAB SIM Symbol in watch window

Status
Not open for further replies.
Hi,

I'm a PIC noob. I just received my PIC Kit 2 today. I want to add the file register called 'DISPLAY' to my watch window. But the 'Add Symbol' feature is greyed out.

Sorry if I'm being thick. Very grateful for any help. Thanks in advance.

**broken link removed**
 
It looks like you did not set up a project, and the file is not compiled? As soon as you compile it the variables will show.
 
I can add any symbol/text by selecting it and then dragging it into the symbol list (add symbol being also grayed out). However i am not sure it works this way. Haven't tested.
 
Hi,

Thanks for the prompt replies!

I have compiled it because I can flash the chip and the prog works. I am only using the MPLAB IDE environment to debug and flash. It's confusing using two seperate progs to do the same task. I'm not entirely sure I know what I'm talking about yet - still finding my way.

Dragging and dropping the label doesn't work.
 
With the PICKIT you can program while in MPLAB. Select PICKIT2 on the debugger menu (in MPLAB)... look in the PICKIT help for more info as well. When you use the PICKIT as a debugger you can see the real registers on your PIC when you step/pause/breakpoint your code, and not some simulated values that does not work well with things like the ADC.
The PICIT is also a basic logic analizer, but you can play around with that when you have a bit more experience.
 
Last edited:
Hi,

I think, iirc, that you (I) require the additional hardware (headers) to do that. Mine is just the basic PICkit2.
 
You don't need any headers to connect/debug it, just follow the help file to see how to connect it to your PIC.
 
Hi,

I've managed to add the symbols; I used the template file (object) for the chip I'm using and added the symbols and the code. There is a lot of other default code in the template file that I don't yet understand.

I'll go and have another look at the PICkit help as you suggest and see if I can figure that one out. Very grateful for your help.

**broken link removed**
 
Looking good. Try to make a LED flash for a start, then add a switch and toggle it with that. Remember to put a resistor between about 300R and 1K in series with the LED.
 
You don't need any headers to connect/debug it, just follow the help file to see how to connect it to your PIC.
I thought you used a different linker file to allow the debugging stuff to work, the one with an 'i' on the end??
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…