CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How do we simulate a CCS code in MPLAB X IDE ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
muhibraza1



Joined: 26 Jul 2013
Posts: 23

View user's profile Send private message

How do we simulate a CCS code in MPLAB X IDE ?
PostPosted: Sat Sep 27, 2014 5:10 am     Reply with quote

Hello everyone !

Can someone tell me how to simulate CCS code in MPLAB IDE ? Actually I tried simulating a code in MPLAB X IDE but the simulator doesnt seem to work. I have installed the CCS plugin and did the other settings as shown in the help video on CCS website, but the simulator does'nt do anything although the project builds fine and debugging works fine too. What could be done to make it work ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Sep 28, 2014 2:51 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group