Display variables when debugging

(instructions, reset, WDT, specifications...) PIC12F6xx, PIC16Fxxx, PIC16F6x, PIC16F7x

Display variables when debugging

Postby spkdd » Fri Oct 16, 2020 10:28 pm

I would like to display the contents of one of my own declared variables when I'm debugging a PIC.
I was able to display that content only by using its real physical address, but how do we use its declared name instead?

I'm on mac/mplabx/pickit3, using assembly language only, and it's on a pic16f688, but that shouldn't make any difference, as it should work the same for any pic.

I used the ac162056 header board and doing the ICSP with the pickit3, running on it's intended pcb.
--
"If it ain't broke, don't fix it!"
"Smile ;-) it WILL get worse!"
spkdd
 
Posts: 1
Joined: Sun Sep 13, 2020 9:31 am

Re: Display variables when debugging

Postby ric » Fri Oct 16, 2020 10:36 pm

How are you "declaring" your variables?
Which assembler are you using?
If it's MPASM, is it Absolute, or Relocatable mode?
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 566
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products


Return to 14-Bit Core

Who is online

Users browsing this forum: No registered users and 1 guest