PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Sep 28, 2014 2:51 pm |
|
|
I don't normally use MPLAB X. I use vs. 8.92. The following method may
not be the best way to do it, but since no one else is answering, it may
help you.
First, I assume you already know how to setup a CCS project in MPLAB X.
If not, read this PDF:
http://www.ccsinfo.com/pdfs/mplabx_ccs_tutorial.pdf
After setting up the project, this is how I got the Simulator to work in MPLAB X:
1. Go to the Project Properties window. There are at least 3 ways to
get to this window. One way is to click on the File menu and then
click on Project Properties.
Once you get to that window, select Conf:[default] and then on the
right side, select Simulator. Click on Apply and OK.
2. Click on the Debug menu at the top of MPLAB X. Click on
Debug Main Project. It will compile the project and start running the
debugger.
3. Then click on Debug / Pause, and then on Debug / Reset.
The green bar should now be on main().
4. On the bottom half of MPLAB X, you will see a Variables tab. Click on it.
5. Now press the F8 key several times and you will step through your
code. You can see the variables get updated with new values as you step
through the code. |
|